running a .sh as a bin
hi i downloaded limewire pro and it works fine but to run it i have to enter the directory and run ./runLime.sh i was wondering is there a way to add it to /usr/bin so i can run it by simply typing limewire in the terminal?
|
You could use ln (man ln) to make a symbolic link from one of your path locations to the executable with the name you want.
Regards, Alunduil |
re
so i just make a file in /usr/bin and then ln -s it to runLime.sh?
i tried it but doesnot work |
You make the simlink in /usr/bin. (/usr/local/bin is the "proper" place for this)
ln -s pathtolimewire/runLime.sh /usr/bin/ |
ln will automatically create the symbolic link file.
Its syntax (for sym links) is: ln -s src dest Go to the directory in which runLime.sh is present and try this: Code:
ln -s ./runLime.sh /usr/bin/limewire |
re
i tried it but after if i type limewire command not found
and if i try /usr/bin/limewire: No souch file or directory |
All times are GMT -5. The time now is 08:13 AM. |