The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Modifying a variable value kartikkumar84@g UNIX for Dummies Questions & Answers 6 05-22-2008 11:19 PM
Modifying a csv file from Shell Script not4google Shell Programming and Scripting 2 11-21-2006 02:47 AM
Need help in modifying the prompt mahatma Shell Programming and Scripting 7 08-02-2006 12:45 AM
Modifying Route hoang IP Networking 1 06-25-2002 04:55 PM
Modifying from borne shell to C shell zenkisoft UNIX for Dummies Questions & Answers 3 04-26-2001 01:18 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-05-2005
Registered User
 

Join Date: Aug 2005
Posts: 1
Stumble this Post!
Question modifying my shell

Hello,

I have installed a new program called chimera under the directory /usr/local/bin/chimera.
the executable is under the directory /usr/local/bin/chimera/bin/chimera.e
If i put myself under the latest directiry and I type ./chimera, the program works.

I would like to avoid this and I would like to type chimera to launch the program wherever I am. I can not figure out how to modify my bash shell (either .bash_profile or may be the /etc equivalent) to be able to do this ?

Can someone help me ?

Thank you in advance

Nicolas
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-05-2005
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,428
Stumble this Post!
Try edit .bashrc and put in

export PATH=$PATH:/path/to/dir/containing/the/program

Logout and log back in, and see if it works.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0