Question on ps
- From: Christopher Knorr <cknorr@xxxxxxxxxxxxxxx>
- Date: Fri, 09 Dec 2005 12:57:43 -0500
We have a simple shell monitoring script that runs out of cron every 5
minutes. It does a 'ps -e' and then grep's to see if the process is
running. If it's not, a pager goes off to alert an operator.
99.99% of the time it works fine, but every so often we get a 'false
positive', and I now know why. Normally the "ps" output for the process
will appear as:
1481 pts/5 I + 02:43:33 vlink_preparation.tcl
However, this morning when we received a false positive, the "ps" output
looked like this:
1481 pts/5 R + 02:38:19 [vlink_preparatio]
This caused my script to be unhappy, because it's greping for the full
process name.
If anyone knows what the brackets mean, and why it truncates the name, I
would be appreciative!!!
Much thanks,
Chris
- Prev by Date: Administrivia: Tru64-UNIX-Managers information and policy statement
- Next by Date: [CFS exNFSprobed]
- Previous by thread: Administrivia: Tru64-UNIX-Managers information and policy statement
- Next by thread: [CFS exNFSprobed]
- Index(es):