From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Knorr Newsgroups: gmane.os.tru64.managers Subject: Question on ps Date: Fri, 09 Dec 2005 12:57:43 -0500 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1134151303 2629 80.91.229.2 (9 Dec 2005 18:01:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2005 18:01:43 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Dec 09 19:01:37 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1EkmVZ-0007uK-Gk for gotm-tru64-unix-managers@gmane.org; Fri, 09 Dec 2005 18:58:13 +0100 Original-Received: (qmail 11065 invoked by uid 49509); 9 Dec 2005 17:58:00 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 11050 invoked by uid 49501); 9 Dec 2005 17:58:00 -0000 Original-Received: from 160.91.86.17 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.86.17):SA:0(-2.6/5.0):. Processed in 1.303038 secs); 09 Dec 2005 17:58:00 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute2.cind.ornl.gov (160.91.86.17) by sws1.ornl.gov with SMTP; 9 Dec 2005 17:57:59 -0000 Original-Received: from emroute2.cind.ornl.gov (localhost [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IR800KMFSKM54@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 09 Dec 2005 12:57:59 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-1x9 #31038) id <0IR800502SKAEC@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 09 Dec 2005 12:57:58 -0500 (EST) Original-Received: from gull.hopsdc.com (gull.hopsdc.com [199.227.253.10]) by emroute2.cind.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IR80043QSK864@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 09 Dec 2005 12:57:46 -0500 (EST) Original-To: tru64-unix-managers@ornl.gov X-Envelope-from: cknorr@trapsystems.com X-MIMEOLE: Produced By Microsoft Exchange V6.5 Thread-Topic: Question on ps Thread-Index: AcX86g4DJSRVOZ9PRUWSTZl3QzLYMA== Content-class: urn:content-classes:message X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on email.cind.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Xref: news.gmane.org gmane.os.tru64.managers:8682 Archived-At: 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