- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- path question
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
01-14-2005 09:44 AM
01-14-2005 09:44 AM
path question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2005 09:47 AM
01-14-2005 09:47 AM
Re: path question
e.g.
PATH=/myextradir/bin:${PATH}
export PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2005 02:21 PM
01-14-2005 02:21 PM
Re: path question
FYI, you don't have to cd to a directory in order to run a program (although it seems easier). Instead of
find / -name myprog
cd /path/above/myprog
./myprog
you could:
find / -name myprog
/path/above/myprog/myprog
Another useful thing is to keep a little file or log for yourself of helpful stuff -- stuff you keep having to look up. :-)
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2005 02:29 PM
01-15-2005 02:29 PM
Re: path question
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2005 03:20 PM
01-15-2005 03:20 PM
Re: path question
Take a little look at the order of the path statement.
I had a single user that scould not scp.
Kept saying options like -p or -rp were invalid.
Scratched my head for a while on it. Searched forums for the message. Didn't write a thread though.
Finally the user asked why scp didn't work for him and everybody else had it.
So reluctantly, I filed a support case on Friday. They never heard of the error message and kicked the call up to backline support.
They asked for a bunch of information. While gathering it, it occurred to me to run the command:
whence scp
I was thinking maybe somehow another scp or openssh release was on the box.
No, there was another program called scp installed with a cobol compiler that only that user used. It was first on the path. Ooops.
So if after modifying the path something strange happens, take a little look along the path as to where the binary is. You may be surprised.
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
01-18-2005 11:16 PM
01-18-2005 11:16 PM
Re: path question
e.g. syntax for posix/ksh , add to .profile:
alias myprog=/full/path/to/myprog