You are not logged in.
Hello,
Not sure if I can actually even call it a script, but I have created shortcuts to start different virtual machines and placed them in /home/bin.
When I had just created them they worked but not any longer.
VBoxManage startvm Debian > /dev/null
I saved it as debian, and ran chmod +x debian.
When I run ./bin/debian it works fine.
but as I understand the scripts located in /home/bin should be recognized automatically.
Anyone can help me figure out why they stopped working?
Cheers,
Last edited by Sofflock (2016-11-15 02:47:37)
Offline
but as I understand the scripts located in /home/bin should be recognized automatically.
Why would you assume that? Unless you add it to $PATH, it's not gonna work.
Online
You have to export that path:
export PATH=$PATH:/home/bin
. Best to put that line in .bashrc or something.
Offline
You have to export that path:
export PATH=$PATH:/home/bin
. Best to put that line in .bashrc or something.
Ah yes, that worked perfectly, just added the line
export PATH=$PATH:/home/micke/bin
and now it works.
Thanks alot!
Offline
For things that short you may just want to make functions or aliases in your bashrc rather than creating a script for each one.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline