- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: command in XPG4 enviroment
Operating System - HP-UX
1755640
Members
3231
Online
108837
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО09-26-2005 09:07 AM
тАО09-26-2005 09:07 AM
Hi,
As I execute the commando ps in XPG4 environment?
( -o " format" options)
S.O. HP-UX 11i.
Thanks
Jorge Prado T.
As I execute the commando ps in XPG4 environment?
( -o " format" options)
S.O. HP-UX 11i.
Thanks
Jorge Prado T.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 09:12 AM
тАО09-26-2005 09:12 AM
Re: command in XPG4 enviroment
Command works like this for XPG4
#UNIX95= ps -o pid,ppid,flags,state,args
Note there is a space between UNIX95= and ps
#UNIX95= ps -o pid,ppid,flags,state,args
Note there is a space between UNIX95= and ps
- Tags:
- UNIX95
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 09:14 AM
тАО09-26-2005 09:14 AM
Solution
Hi Jorge
You need to set the UNIX95 environmental variable, but do this only for the duration of your command line to avoid (later) tools changing their behavior because use set and exported it to your shell. Thus, by example:
# UNIX95= ps -e -o "user,vsz,pid,ppid,args" | awk 'NR>1' | sort -rnk2
*Note* the space following the equal (=) sign and then the beginning of the command. There is *no* semicolon.
This lists the user, virtual size, pid, parental pid and commandline arguements for all processes. The first (header) is snipped off and the process list sorted in descending order of process virtual size.
Regards!
...JRF...
You need to set the UNIX95 environmental variable, but do this only for the duration of your command line to avoid (later) tools changing their behavior because use set and exported it to your shell. Thus, by example:
# UNIX95= ps -e -o "user,vsz,pid,ppid,args" | awk 'NR>1' | sort -rnk2
*Note* the space following the equal (=) sign and then the beginning of the command. There is *no* semicolon.
This lists the user, virtual size, pid, parental pid and commandline arguements for all processes. The first (header) is snipped off and the process list sorted in descending order of process virtual size.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 09:22 AM
тАО09-26-2005 09:22 AM
Re: command in XPG4 enviroment
OOPS!!!! Sorry
Missed the -e attribute in the command for all system running processes.
read as
# UNIX95= ps -e -o pid,ppid,flags,state,etime,args
Missed the -e attribute in the command for all system running processes.
read as
# UNIX95= ps -e -o pid,ppid,flags,state,etime,args
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP