From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: bryan.mills@lynx.co.uk Newsgroups: gmane.os.tru64.managers Subject: Help with script Date: Wed, 05 Jun 2002 10:18:03 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1023269781 25596 127.0.0.1 (5 Jun 2002 09:36:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 5 Jun 2002 09:36:21 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17FXDI-0006ej-00 for ; Wed, 05 Jun 2002 11:36:21 +0200 Original-Received: (qmail 14674 invoked by uid 5); 5 Jun 2002 09:15:49 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 14666 invoked from network); 5 Jun 2002 09:15:48 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (134.167.3.110) by 0 with SMTP; 5 Jun 2002 09:15:48 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GX8006P172CTF@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 05 Jun 2002 05:15:48 -0400 (EDT) Original-Received: from mailsrv02.lynx.co.uk (mailhost.lynx.co.uk [194.203.251.189]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GX800K4E71ZOZ@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 05 Jun 2002 05:15:36 -0400 (EDT) Original-Received: from mailhost.lynx.co.uk (unverified) by mailsrv02.lynx.co.uk (Content Technologies SMTPRS 4.2.5) with SMTP id for ; Wed, 05 Jun 2002 10:20:21 +0100 Original-To: tru64-unix-managers@ornl.gov X-Mailer: TFS Secure Messaging /222000000/223042434/223004594/223091115/ X-Mailer: Version 4.71 Build 102 Xref: main.gmane.org gmane.os.tru64.managers:443 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:443 We have many jobs started from the cron. Occasionally we end up with duplicates because the previous execution hasn't completed in time. Does anyone have a script that will check for itself before running, and 'exit 0' if a previous instance is in the process list. Bryan. This message is intended only for the use of the person(s) ("The intended Recipient(s)") to whom it is addressed. It may contain information which is privileged and confidential within the meaning of applicable law. If you are not the intended recipient, please contact the sender as soon as possible. The views expressed in this communication are not necessarily those held by LYNX Express Limited.