LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2002, 03:35 AM   #1
Jester888
LQ Newbie
 
Registered: Jan 2002
Location: Knoxville, TN
Distribution: Mandrake 8.1
Posts: 12

Rep: Reputation: 0
linking to a Shell-script


I would like to create a symlink in the /usr/bin directory to run a shell-script file. In short, I want to be able to run netscape 6.2 from the command line with out having to be in the /usr/local/netscape dir. Can this be done via "ln" or is there a better way? I have tried to create both soft and hard links, both have failed.
 
Old 01-23-2002, 04:22 AM   #2
da Perp
Member
 
Registered: Oct 2001
Location: the Netherlands
Distribution: Bear Linux (LFS 3.3)
Posts: 171

Rep: Reputation: 30
why don't you just copy the netscape executable to /usr/bin ?!?!?!?!???
 
Old 01-23-2002, 09:04 AM   #3
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Copying isn't always the best. You could either make the link or add /usr/local/netscape to your path.

ln -s /usr/local/netscape/netscape /usr/bin/netscape

The -s is for a symbolic link not a soft link.


To add it to your path you could add the following line in ~/.bashrc. Or any of the other startup scripts you use.

export PATH=$PATH:/usr/bin/netscape

Last edited by Mik; 01-23-2002 at 09:06 AM.
 
Old 01-23-2002, 12:42 PM   #4
Jester888
LQ Newbie
 
Registered: Jan 2002
Location: Knoxville, TN
Distribution: Mandrake 8.1
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the help. Adding it to the path worked fine.
 
  


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
Shell script inside shell script treotan Linux - General 4 02-19-2009 07:34 AM
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 03:14 AM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 06:32 PM
Directory listing - Calling shell script from a CGI script seran Programming 6 08-12-2005 12:08 AM
[SHELL SCRIPT] Write at the right of the shell window Creak Linux - General 2 04-02-2004 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration