- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ps command
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
02-17-2003 08:10 AM
02-17-2003 08:10 AM
Ps command
When I launch the ps command with several switches (-eaf for example), the output on the screen is truncated (command path). My term is vt220 or 320. Have you got any idea to output the full path in the output.
Thanks in advance
REgards
J??r??me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2003 08:17 AM
02-17-2003 08:17 AM
Re: Ps command
Depending on what Terminal you use, there would an option to "unwrap" the lines. You will need to enable it.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2003 08:20 AM
02-17-2003 08:20 AM
Re: Ps command
If you mean that the command associated with each process is not shown in full, please refer to:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x400557bd90a9d611abdb0090277a778c,00.html
rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2003 08:22 AM
02-17-2003 08:22 AM
Re: Ps command
I addition to Sri's comments, remember that
the kernel saves only a finite subset of the command line (args). Hence, even after line-wrap, you may not see the complete command line.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2003 08:24 AM
02-17-2003 08:24 AM
Re: Ps command
Have a look at this thread about showing all the command line args via ps:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3b6142308663d611abdb0090277a778c,00.html
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2003 08:25 AM
02-17-2003 08:25 AM
Re: Ps command
I should add that on 11.0 you're limited to 64-characters. On 11.11, add the '-x' option to the 'ps' arguments to extend your command display to 1024 characters.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2003 08:43 AM
02-17-2003 08:43 AM
Re: Ps command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2003 10:56 AM
02-17-2003 10:56 AM
Re: Ps command
# UNIX95= ps -eo vsz,ruser,ppid,pid,comm |sort -rn |more
16872 root 3344 3475 monconfig
7968 root 1 1840 prm3d
4444 root 1 1413 rpcd
2952 root 1 1868 swagentd
vsz: Memory in KBytes
PPID: Parent Process ID
Comm: Command can be replaced by `args` for more path details. here when ruser is omitted:
#UNIX95= ps -eo vsz,ppid,pid,args |sort -rn |more
16872 3344 3475 ./monconfig
7968 1 1840 /opt/prm/bin/prm3d
4444 1 1413 /opt/dce/sbin/rpcd
2952 1 1868 /usr/sbin/swagentd -r
2928 1 1805 /opt/perf/bin/midaemon
..
UNIX95 specifies to use the XPG4 behavior for ps(1). Please refer to EXTERNAL INFLUENCES in ps manpages.
Cheers,
T??
PAP! (a.k.a. PLIZ ASSIGN POINTS)