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
12-31-2008 02:53 PM
12-31-2008 02:53 PM
ps
I need to know the option of the "ps" command that shows the full path of the command
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2008 03:16 PM
12-31-2008 03:16 PM
Re: ps
What's reported by 'ps' is the command line as originally issued. This is available in the 'args' field output. It may or may not be a command with an absolute path.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2008 03:25 PM
12-31-2008 03:25 PM
Re: ps
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1280356
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=718760
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2008 03:32 PM
12-31-2008 03:32 PM
Re: ps
You'll want one of the options listed under the sub-heading "Output Format Options". By reading through the descriptions of the available information columns, you'll want to display the "args" column instead of "comm".
But if the full path is not used in starting the command, it cannot be displayed in the ps listing, no matter what options do you use. In such a case, the free "lsof" utility is useful: just use "lsof -p
(Although lsof is not a standard HP-UX command, it is a great tool for sysadmins. It is available in the free Internet Express package from software.hp.com, and in the Porting Archive. It is also compilable using the bundled cc compiler, if you need lsof for some old 10.20 or 11.00. Never leave /home without it! :-)
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2008 03:34 PM
12-31-2008 03:34 PM
Re: ps
http://docs.hp.com/en/B2355-60130/pstack.1.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2009 06:32 AM
01-01-2009 06:32 AM
Re: ps
man ps "will provide you all information" or options,
Normal "ps" command to show option would be (ef) & grep specfic "process" or file
Example:-
ps -ef |grep smb
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2009 10:02 AM
01-01-2009 10:02 AM
Re: ps
It is dangerous to use grep. Instead use:
UNIX95=EXTENDED_PS ps -Hf -C process-name