- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Process monitor - ps
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
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
тАО03-02-2004 02:04 PM
тАО03-02-2004 02:04 PM
Process monitor - ps
I wanted to find out if there is any option under HP-UX that will not display the original process when issue with ps command.
Example.
----------
ps -ef |grep netmon
will only display process that contain netmon and exclude the process started by the "ps -ef |grep netmon"
I know in Solaris, there was this option "-v" under the grep command which will result only the other process that matches the string to appear. However this option is not in the version of HP-UX that I'm using.
Would appreicate that the someone can help me on this. Thank you.
Regard,
Tan Kian Chye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2004 02:09 PM
тАО03-02-2004 02:09 PM
Re: Process monitor - ps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2004 11:43 PM
тАО03-02-2004 11:43 PM
Re: Process monitor - ps
ps -ef | grep "[n]etmon"
The command-line of the grep-process is:
grep [n]etmon
This does not match with the regular expression "[n]etmon" and the process will not show up.
Use the quotes to avoid that the filename generation feature of the shell removes the brackets from the command-line when the current directory contains a file netmon.
Siem Korteweg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2004 11:50 PM
тАО03-02-2004 11:50 PM
Re: Process monitor - ps
UNIX95= ps -C netmon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2004 12:14 AM
тАО03-03-2004 12:14 AM
Re: Process monitor - ps
##########################################################################
# psg - Process Search
# Substitute for "ps -ef|grep" command string.
##########################################################################
case $# in
0) echo "Error: Argument Expected";
exit;
;;
1) ps -ef | grep $1 | grep -v "grep"
# 1) UNIX95= ps -fC $1
;;
*) echo "Error: Only 1 Argument Allowed";
exit;
;;
esac
Usage is simply "psg netmon" - much shorter than typing everything else in.
Pete
Pete