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 11-22-2004, 08: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, 08:13 AM   #2
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 464

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

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
from your home directory, run "./bin/azureus"
 
Old 11-22-2004, 08:17 AM   #4
b0uncer
LQ 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, 08: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, 09:44 AM   #6
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
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, 10: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



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 09:27 AM
symbolic link ilnli Slackware 6 01-04-2005 05:05 PM
symbolic link jsetter Linux - Newbie 4 11-22-2004 07:18 AM
Symbolic link. bulzbb Linux - General 8 03-19-2004 04:57 AM
Symbolic link bwaynej2002 Linux - General 8 08-25-2003 10:06 PM

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

All times are GMT -5. The time now is 04:56 AM.

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