- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting up the PATH environment variable
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2003 04:03 AM
11-21-2003 04:03 AM
I would like to add the /opt/java1.4/bin path along with the exisitng path to the oracle user. How can I add this path to the exisiting path?
Thanks,
Nikee
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2003 04:04 AM
11-21-2003 04:04 AM
Re: Setting up the PATH environment variable
PATH=$PATH:/opt/java1.4/bin:
export PATH
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2003 04:07 AM
11-21-2003 04:07 AM
Re: Setting up the PATH environment variable
in the oracle user profile add the following:
export PATH=$PATH:/opt/java1.4/bin
TS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2003 04:12 AM
11-21-2003 04:12 AM
Re: Setting up the PATH environment variable
The system is responding with the following error message, when I run the following command:
export PATH=$PATH:/opt/java1.4/bin:
Thanks,
Nikee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2003 04:12 AM
11-21-2003 04:12 AM
Re: Setting up the PATH environment variable
Thanks,
Nikee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2003 04:20 AM
11-21-2003 04:20 AM
SolutionPATH=$PATH\;/opt/java1.4/bin
If you need all other users to have access to this path, consider adding to /etc/profile.
If there are other versions of java, with executables of the same name, you may have to experement with the placement in the path of this new entry.
ie: PATH=/opt/java1.4/bin\;$PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2003 04:22 AM
11-21-2003 04:22 AM
Re: Setting up the PATH environment variable
do you have csh shell?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2003 04:37 AM
11-21-2003 04:37 AM
Re: Setting up the PATH environment variable
if you have csh shell you must add the following:
setenv PATH $PATH\:/opt/java1.4/bin
TS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2003 04:46 AM
11-21-2003 04:46 AM
Re: Setting up the PATH environment variable
I think, TS is right. csh produces that error.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2003 05:17 AM
11-21-2003 05:17 AM
Re: Setting up the PATH environment variable
Now its working.
Thanks for the quick response.
Regards,
Nikee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2003 07:55 AM
11-21-2003 07:55 AM
Re: Setting up the PATH environment variable
Security alert: Be very careful not to insert : as the first character on the line, or to insert 2 adjacent :: characters or append :> or :: on the end of the line. In all cases, these character combinations are shorthand for $PWD or the current working directory. To see how this can be a big problem, do this:
cd
echo "echo Big Mistake! I am \$0 in your PATH" > su
chmod 755 su
I leave this file in my HOME directory and if I type su and get the above error message, I am reminded that this is a security risk and this simple notice could have been a hacker's attempt to steal my password.
Bill Hassell, sysadmin