LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-01-2003, 05:47 PM   #1
scottsteibel
Member
 
Registered: Jul 2003
Location: Long Island, NY
Posts: 43

Rep: Reputation: 15
need help with symbolic link to shell script


In order to include a new program in the path. I tried to use ln -s to make a symbolic link to a shell script. I seem to make the link in /use/local/bin, but it won't run the program. I noticed the owner of the link file is 12533 group 116. This shows up on the shell script itself..I tried using chown to no avail. I did make a symbolic link to an executable (first one) and that is working. Any suggestions...thanks, Scott
 
Old 08-01-2003, 06:45 PM   #2
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
1) What is the path to the executable binary or shell script you want to run?

2) Where do you want to put the symbolic link?

3) What are the contents of your PATH environmental variable?
 
Old 08-01-2003, 06:50 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
You may need to use chown's --dereference option. Read man chown to find all the ins and outs of using chown with symbolic links.
 
Old 08-02-2003, 05:17 PM   #4
scottsteibel
Member
 
Registered: Jul 2003
Location: Long Island, NY
Posts: 43

Original Poster
Rep: Reputation: 15
Actually, I think my question is even more basic than, I thought. So let me rephrase: I have installed a modeling program (starlogo) in /usr/local/starlogo2.0.2/starlogo-unix. the script file starlogo-unix should run the program. Indeed it does, but only if I run it from the shell while I am in the directory /usr/local/starlogo2.0.2. I runs with out the ./ If I type the command from any other directory, even with the ./ it won't run.

If I click on the file icon that shows up in konqueror in the /usr/local/starlogo2.0.2 directory. I can't find the file. If I try to make a linking icon on the desktop (which is what I really want to do) that will give me the same file not found routine.

Why does this script file run from the shell, but not the icon in konqueror.

Sorry to be so long winded, I'm just trying to post a complete question. Thanks for any help you can be, Scott
 
Old 08-02-2003, 07:40 PM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
"I noticed the owner of the link file is 12533 group 116. This shows up on the shell script itself..I tried using chown to no avail."

Log in as root and use chown to change the ownership of both
/usr/local/starlogo2.0.2 and /usr/local/starlogo2.0.2/starlogo-unix to root:root.
Also use chmod to set the permissions of /usr/local/starlogo2.0.2/starlogo-unix to 555 if it is not already so that users other than root can execute it.

"Why does this script file run from the shell, but not the icon in konqueror. "

If you get your ownership and permissions straightened out it will probably run from konqueror.

"If I type the command from any other directory, even with the ./ it won't run. "

If you are in the /usr/local/starlogo2.0.2 you can start the command with ./starlogo-unix. ./starlogo-unix means run startlogo-unix from the current directory. If you are in any other directory then you need to give the full path name: /usr/local/starlogo2.0.2/starlogo-unix

"If I try to make a linking icon on the desktop (which is what I really want to do) that will give me the same file not found routine. "

When you set up the desktop icon the command that you want to run is: /usr/local/starlogo2.0.2/starlogo-unix

As an alternative, after you use chown and chmod to straighten out the ownership and permissions you could put a symbolic name on the PATH such as:

ln -s /usr/local/starlogo2.0.2/starlogo-unix /bin/starlogo-unix

If you want to know what directories are on the PATH then enter:
echo $PATH

Last edited by jailbait; 08-02-2003 at 08:04 PM.
 
Old 08-02-2003, 08:00 PM   #6
scottsteibel
Member
 
Registered: Jul 2003
Location: Long Island, NY
Posts: 43

Original Poster
Rep: Reputation: 15
thanks for the suggestions......I'll work on it in the morning. Another questioin if I may....I kinda messed up by posting this question in another new thread, how do I delete the new thread from this forum. Thanks again
 
Old 08-02-2003, 08:05 PM   #7
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
I just use the edit button to change the second post to a corny joke.

Last edited by jailbait; 08-02-2003 at 08:06 PM.
 
Old 08-02-2003, 09:40 PM   #8
scottsteibel
Member
 
Registered: Jul 2003
Location: Long Island, NY
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks Steve.....I'm gonna try your suggestions now..why wait till the morning..........can you suggest a good book to help a newbie like me. I've go the o'reilly running linux book, but some how I just struggle for hours with this stuff....although I am learning.
 
Old 08-02-2003, 11:11 PM   #9
scottsteibel
Member
 
Registered: Jul 2003
Location: Long Island, NY
Posts: 43

Original Poster
Rep: Reputation: 15
Linux hates me.......I tried changing the ownership and permissons.......first to root:root, then root:bin....then desperation set in so what the hell...I went for scott:users. I did this in both directories. No luck with the Konqueror Icon....no luck with the desktop icon.

By the way when I type the full path from any directory, it give me the file not found thing. Will only run from /user/local/starlogo-2.0.2/ directory. NOw with or with out the ./ I really just want an icon on the desk top so my students can access the program in September. I really don't want them in anything but their home directories.
 
  


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
symbolic link to the realplay script is in your PATH Baracuda Linux - Software 1 10-03-2005 02:31 AM
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
shell script link/shortcut in KDE sanger440 Linux - Newbie 7 02-12-2004 05:37 PM
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 07:47 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