LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   running a .sh as a bin (https://www.linuxquestions.org/questions/linux-software-2/running-a-sh-as-a-bin-410681/)

matrixon 02-01-2006 10:36 PM

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?

alunduil 02-01-2006 10:37 PM

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

matrixon 02-01-2006 11:21 PM

re
 
so i just make a file in /usr/bin and then ln -s it to runLime.sh?
i tried it but doesnot work

ntubski 02-02-2006 01:01 AM

You make the simlink in /usr/bin. (/usr/local/bin is the "proper" place for this)

ln -s pathtolimewire/runLime.sh /usr/bin/

egghead 02-02-2006 01:06 AM

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

matrixon 02-02-2006 10:39 AM

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.