- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- $PATH not being read??
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
Discussions
Discussions
Forums
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
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
тАО05-12-2004 08:09 PM
тАО05-12-2004 08:09 PM
$PATH not being read??
please help...
i have an executable named 'pong' :
# whereis pong
pong: /usr/local/bin/pong /opt/seri/bin/pong
i am logged in as root [on console and remotely via reflection1]
[.profile]
PATH=/usr/sbin:$PATH:/sbin:/home/root:/opt/seri/bin/
when i execute on local console, this is what i get [which is correct]
# pong server1
'server1' SERI is alive (channels: 4 maximum; 4 free)
'server1' SERI version = 3.0/0 for HP-UX B.11.00
when i execute on remote connection [logged in via reflection1, as root]
# pong server1
sh: pong: not found.
# whereis pong
pong: /usr/local/bin/pong /opt/seri/bin/pong
if i will execute using the absolute path, the command will work...
Where else do i need to look?
Please help..
Thank you...
ann
- Tags:
- PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2004 08:12 PM
тАО05-12-2004 08:12 PM
Re: $PATH not being read??
try
echo $PATH
to find out what your path is when logged in for starters
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2004 08:15 PM
тАО05-12-2004 08:15 PM
Re: $PATH not being read??
try:
# echo $PATH|grep local
any output, if not, it means /usr/local/bin is not in the PATH.
if you need it in the PATH, edit your .profile to include.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2004 08:20 PM
тАО05-12-2004 08:20 PM
Re: $PATH not being read??
If it is C shell then do it in .cshrc
For psoix it is .shrc
Hope this solves your problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2004 08:29 PM
тАО05-12-2004 08:29 PM
Re: $PATH not being read??
am checking on it, will update yous once i was able to log in...
Thanks again!
ann
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2004 08:31 PM
тАО05-12-2004 08:31 PM
Re: $PATH not being read??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2004 08:50 PM
тАО05-12-2004 08:50 PM
Re: $PATH not being read??
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2004 09:03 PM
тАО05-12-2004 09:03 PM
Re: $PATH not being read??
# echo $PATH
/usr/sbin:/bin:/usr/bin:/usr/dt/bin:/usr/bin/X11:/sbin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/fcms/bin:/usr/contrib/kwdb/bin:/opt/upgrade/bin:/usr/contrib/bin/X11:/opt/graphics/common/bin:/opt/ipf/bin:/opt/resmon/bin:/opt/sec_mgmt/bastille/bin:/opt/gnome/bin:/opt/perf/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/mozilla:/opt/Netscape:/opt/mx/bin:/opt/sec_mgmt/spc/bin:/opt/ignite/bin
# whoami
root
# who am i
# echo $SHELL
/sbin/sh
on console:
echo $PATH
/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/fcms/bin:/usr/contrib/kwdb/bin:/opt/upgrade/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/graphics/common/bin:/opt/ipf/bin:/opt/resmon/bin:/opt/sec_mgmt/bastille/bin:/opt/gnome/bin:/opt/perf/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/mozilla:/opt/Netscape:/opt/mx/bin:/opt/sec_mgmt/spc/bin:/opt/ignite/bin:/sbin:/home/root:/opt/seri/bin/
# whoami
root
# who am i
# echo $SHELL
/sbin/sh
please help....
thanks!!!
ann
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2004 09:07 PM
тАО05-12-2004 09:07 PM
Re: $PATH not being read??
as mentioned, edit .profile, and insert ":/usr/local/bin" to the end of the PATH variable, i.e.
PATH=/usr/sbin:$PATH:/sbin:/home/root:/opt/seri/bin/:/usr/local/bin
logout and login again.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2004 09:09 PM
тАО05-12-2004 09:09 PM
Re: $PATH not being read??
Check your $HOME/.dtprofile for the last line, should be uncommented.
DTSOURCEPROFILE=true
Hope this helps,
Robert-Jan