- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 'ps' bug?
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-13-2005 09:30 AM
тАО11-13-2005 09:30 AM
works most of the time, but every couple days
fails to return what is expected.
We do this from cron (every five minutes?)
as well as OpenView with an edited template,
on 11.11, and have encountered problems both ways.
Anyone ever seen this before?
Here is a sample of the grep when it works.
We use the 'x' because args to the java runtime are too far out for 'ps -ef'.
Ex.:
ps -efx | grep MultiSendFunnel
Returns mostly:
user 27215 1 0 Sep 24 ? 67:06 /opt/java1.4/jre/bin/PA_RISC2.0/java -classpath /home/jburn/src/java/starter MultiSendFunnel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2005 10:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2005 02:38 PM
тАО11-13-2005 02:38 PM
Re: 'ps' bug?
Other thing is not to rely on grep statements.
What you can do is enable XPG4 ps behaviour.
UNIX95= ps -CMultiSendFunnel -o "pid,ppid,ruser,args"
man ps for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2005 02:56 PM
тАО11-13-2005 02:56 PM
Re: 'ps' bug?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2005 01:46 AM
тАО11-14-2005 01:46 AM
Re: 'ps' bug?
Awesome!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2005 02:50 AM
тАО11-14-2005 02:50 AM
Re: 'ps' bug?
UNIX95= ps -xC java-classpath -o pid,ruser,args
The -C does not use grep, it looks in the process table and performs an exact match on the process name.
Bill Hassell, sysadmin