- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to view a process tree
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
Forums
Discussions
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
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-14-2006 02:43 AM
02-14-2006 02:43 AM
Script to view a process tree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 02:47 AM
02-14-2006 02:47 AM
Re: Script to view a process tree
UNIX95=1 ps -Hef
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 02:51 AM
02-14-2006 02:51 AM
Re: Script to view a process tree
Just don't leave UNIX95 set all the time. It interferes with SD/UX software installation.
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
02-14-2006 02:51 AM
02-14-2006 02:51 AM
Re: Script to view a process tree
# UNIX95= ps -ef -H
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 02:53 AM
02-14-2006 02:53 AM
Re: Script to view a process tree
Perhaps a script from HP...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 03:05 AM
02-14-2006 03:05 AM
Re: Script to view a process tree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 03:11 AM
02-14-2006 03:11 AM
Re: Script to view a process tree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 03:14 AM
02-14-2006 03:14 AM
Re: Script to view a process tree
UNIX95=1 ps -Hef
sets the environement UNIX95 only for the ps command.
You should NOT export UNIX95=1 , as this may conflict with certain commands
Regards
rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 03:18 AM
02-14-2006 03:18 AM
Re: Script to view a process tree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 03:45 AM
02-14-2006 03:45 AM
Re: Script to view a process tree
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 04:08 AM
02-14-2006 04:08 AM
Re: Script to view a process tree
Note how I wrote the command on one line.
# UNIX95= ps -ef -H
There is a space after the equal sign and then the 'ps' command.
This arms the XPG4 (UNIX95) behavior) *only* for the duration of the command line.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 10:07 AM
02-14-2006 10:07 AM
Re: Script to view a process tree
The ps command has an enormous number of options that most admins overlook and use grep instead. UNIX95 turns on 3 very use options: -H -C and -o. Checkout the details in the man page.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 04:13 PM
02-14-2006 04:13 PM
Re: Script to view a process tree
cc pswalk.c -o pswalk.
#define CMD "ps -fe|grep -v STIME" /* command to get info */
I suggest you put the full path name for ps and grep in the define statement.
I have used this for many years.
Rory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 07:59 PM
02-14-2006 07:59 PM
Re: Script to view a process tree
I use the pidtree script (ksh) attached.
To see the usage type pidtree ?.
It allow me to see the process family (parents and son) starting for a given pid.
I use this to be able to kill all the process tree in one shot.
Let me know if you want the killkids script as well.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 02:09 PM
09-26-2006 02:09 PM
Re: Script to view a process tree
If I could, I would give you and the others points for the great service you have provided to me and others.
It is a shame that Craig has not taken the time to thank you all, by assigning points. It is free!!
Isaac
Senior Unix Admin. Amdocs