LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-01-2006, 10:36 PM   #1
matrixon
Member
 
Registered: Feb 2005
Location: mexico city
Distribution: 2.6.17-gentoo-r8
Posts: 127

Rep: Reputation: 15
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?
 
Old 02-01-2006, 10:37 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
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
 
Old 02-01-2006, 11:21 PM   #3
matrixon
Member
 
Registered: Feb 2005
Location: mexico city
Distribution: 2.6.17-gentoo-r8
Posts: 127

Original Poster
Rep: Reputation: 15
re

so i just make a file in /usr/bin and then ln -s it to runLime.sh?
i tried it but doesnot work
 
Old 02-02-2006, 01:01 AM   #4
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,784

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

ln -s pathtolimewire/runLime.sh /usr/bin/
 
Old 02-02-2006, 01:06 AM   #5
egghead
LQ Newbie
 
Registered: Jan 2006
Distribution: Slackware 9.1
Posts: 23

Rep: Reputation: 15
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
 
Old 02-02-2006, 10:39 AM   #6
matrixon
Member
 
Registered: Feb 2005
Location: mexico city
Distribution: 2.6.17-gentoo-r8
Posts: 127

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running perl scripts outside of cgi-bin ylikone Programming 1 09-08-2005 04:34 AM
Error while running .bin script: missing libXp.so brunnopessoa Linux - Software 2 10-22-2004 08:41 PM
running bin files joeman3429 Fedora 8 08-08-2004 01:44 PM
Running a shell script via CGI-BIN chrisk5527 Linux - General 3 05-09-2003 11:44 AM
running .bin files pyropenguin Linux - Software 8 11-07-2002 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration