LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-22-2004, 09:09 AM   #1
mykrob
Member
 
Registered: Jun 2004
Location: Jackson, TN
Distribution: Kubuntu Feisty
Posts: 606

Rep: Reputation: 31
help with a symbolic link


I need a little help creating a symbolic link. I want to make a sym-link to Azureus and place it in /home/myk/bin so that i can run azureus from a run prompt. I have done this before, but i must be messing something up..

here's what i tried:
Code:
ln -s "/home/myk/Downloads/azureus/azureus" /homemyk/bin/azureus
now, if i click on the link i just made, it opens up azureus. If i type "azureus" in the run box, it is accepted as a command, but the application does not open. If it matters, the file is a shell script, not a binary. How can i successfully create this link to run from a run prompt? I know i could just make an icon on the desktop, but now that i have started, i have to finish this way just for the sake of learning..

Thanks,
-myk
 
Old 11-22-2004, 09:13 AM   #2
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 449

Rep: Reputation: 31
Simple question first: if you type "/home/myk/Downloads/azureus/azureus" does the program run?
 
Old 11-22-2004, 09:14 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
from your home directory, run "./bin/azureus"
 
Old 11-22-2004, 09:17 AM   #4
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
just to check out...does the app need to be launched in a specific directory to work? I mean, if you're in /home/xxyy and launch it and it works, it might not work if you're in, say, / or /someplace/else. that is, some files that the app needs are in the folder the executable is in, and it tries to launch them from the same dir (not with the full path).

so you might need to create a whole new script instead of the symlink, that would first cd into the dir and only then launch the other script....
 
Old 11-22-2004, 09:31 AM   #5
mykrob
Member
 
Registered: Jun 2004
Location: Jackson, TN
Distribution: Kubuntu Feisty
Posts: 606

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by fsbooks
Simple question first: if you type "/home/myk/Downloads/azureus/azureus" does the program run?
yes, this works from the run prompt.

-myk
 
Old 11-22-2004, 10:44 AM   #6
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,496

Rep: Reputation: 68
Its posslibe the script is running some commands in the direcotry that it acutally is in

example would be like say i have the cats pogram in /home/me/cats
but in the script it says " do ./cats"

You would have to change the path to be exact something like "do /home/me/cats"


also if you can post your script here it mabye helpfull in resolving the problem.
 
Old 11-22-2004, 11:01 AM   #7
rutgerw
Member
 
Registered: Jun 2004
Location: Leiden, The Netherlands
Distribution: Slackware 10.2, SmoothWall Express v3, Kubuntu 7.04, Mac OS X.4
Posts: 69

Rep: Reputation: 15
is /home/myk/bin/ in your PATH? you can check by typing

Code:
echo $PATH
If not it might be easier to put the link in /usr/bin since that directory is in your PATH for sure.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
What is a Symbolic Link? little_penguin Linux - Software 2 05-14-2005 10:27 AM
symbolic link ilnli Slackware 6 01-04-2005 06:05 PM
symbolic link jsetter Linux - Newbie 4 11-22-2004 08:18 AM
Symbolic link. bulzbb Linux - General 8 03-19-2004 05:57 AM
Symbolic link bwaynej2002 Linux - General 8 08-25-2003 11:06 PM


All times are GMT -5. The time now is 09:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration