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 03: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 Search this Thread Display Modes
  #1  
Old 08-05-2005
Registered User
 

Join Date: Aug 2005
Posts: 1
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  
Old 08-05-2005
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,477
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 Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:29 AM.


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

Content Relevant URLs by vBSEO 3.2.0