![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Maintain full path of a script in a var when sourcing it from a different script | mrbluegreen | Shell Programming and Scripting | 4 | 03-19-2008 06:31 PM |
| Bash Script to display directories in Path? | debut | Shell Programming and Scripting | 1 | 11-09-2005 01:06 PM |
| Full path of executing script in ksh? | BriceBu | Shell Programming and Scripting | 2 | 09-19-2005 06:29 AM |
| getting a shell script to know it's path | Nat | Shell Programming and Scripting | 6 | 06-06-2004 05:08 PM |
| Determining absolute PATH within KSH script | gsatch | Shell Programming and Scripting | 5 | 06-14-2002 09:23 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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 | ||
|
|
|
||||
|
Quote:
#!/bin/ksh export PATH=$PATH:/home/username/bin exit (Sorry, haven't messed with bash - should be close though) |