The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-27-2003
jagannatha jagannatha is offline
Registered User
 

Join Date: Oct 2002
Location: Auckland, NZ
Posts: 49
Set PATH using a script

I am a corporate user of Solaris ?? I have to write a lot of scripts to do little repetitive actions. To make this easier I would like to set the PATH so that I do not have to type ./ first before the script name.

Is there an easy script that will allow me to set this path when I log in???

My current path is;
$echo $PATH
/opt/jre1.2.2_05a/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/bin:/usr/ucb:/usr/openwin/bin:/opt/oracle/7.3.4/bin:/app/icop/aircrews/CIP/bin:/app/icop/aircrews/COP/bin:/usr/local/bin

I approached our sys admin people and they advised that this was set up to stop people writing scripts with the same name as existing scripts, lame yeah.
I would ideally like to edit the .bash_profile with ./~ but they will not allow that either.

HELP Please!!!

Forum Sponsor