- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Shell script "threads"
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
тАО11-08-2004 03:18 AM
тАО11-08-2004 03:18 AM
Solved! Go to Solution.
- Tags:
- PS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2004 03:25 AM
тАО11-08-2004 03:25 AM
Re: Shell script "threads"
In order not to miss the shell, you can use this command : "UNIX95=true ps -AH -o user,pid,args" which will show you processes in a tree form. You can use grep to get only processes hold by the user you want.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Tags:
- UNIX95
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2004 03:43 AM
тАО11-08-2004 03:43 AM
Re: Shell script "threads"
Well, I suppose I should have been more specific. According to the "man" pages for "ps" the -A and -H options are only valid for XPG4. I am certain that your solution would work swell in such a case. To be honest with you, I don't even know what XPG4 is, but I do know that I get an error when I try to use these options. I am on HPUX 11.00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2004 03:48 AM
тАО11-08-2004 03:48 AM
Re: Shell script "threads"
UNIX95= ps -AH -o user,pid,args | grep
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2004 03:53 AM
тАО11-08-2004 03:53 AM
Re: Shell script "threads"
ps: illegal option -- A
ps: illegal option -- H
ps: illegal option -- o
usage: ps [-edaflPx] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup]
Perhaps mistakenly I removed the spaces and replaced them with "back tics",
But thanks anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2004 03:54 AM
тАО11-08-2004 03:54 AM
Re: Shell script "threads"
just a space between UNIX95= and ps command
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2004 03:56 AM
тАО11-08-2004 03:56 AM
Re: Shell script "threads"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2004 03:59 AM
тАО11-08-2004 03:59 AM
Solutionhttp://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1067486990423+28353475&threadId=4177
Regards
Jean-Luc
- Tags:
- broken URL link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2004 04:11 AM
тАО11-08-2004 04:11 AM
Re: Shell script "threads"
Switching in XPG4 mode can be done by setting UNIX95 env variable to anything you want (for exemple to "true").
In Unix, you can do the following :
. Have a var defined for your shell, using "UNIX95=true"on a single line.
. Have a var defined for your shell and sub-shells, using "export UNIX95=true" on a single line
. Have a var defined only for the current command, using "UNIX95=true whatevercommandyouwant".
I used the last one. So you have to do exactly the following :
UNIX95=true ps -AH -o user,pid,args
(note the space between "UNIX95=true" and "ps".)
I only set UNIX95 for this command, because this XPG4 environment has consequences for many commands and I don't want your environment to be changed.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2004 04:34 AM
тАО11-08-2004 04:34 AM