From owner-freebsd-questions Tue Aug 22 11:13:23 2000 Delivered-To: freebsd-questions@freebsd.org Received: from c014.sfo.cp.net (c014-h017.c014.sfo.cp.net [209.228.12.81]) by hub.freebsd.org (Postfix) with SMTP id 331D537B423 for ; Tue, 22 Aug 2000 11:13:15 -0700 (PDT) Received: (cpmta 19734 invoked from network); 22 Aug 2000 11:13:13 -0700 Received: from m12hRs4n205.midsouth.rr.com (HELO development1) (24.95.125.205) by smtp.valuedata.net with SMTP; 22 Aug 2000 11:13:13 -0700 X-Sent: 22 Aug 2000 18:13:13 GMT Message-ID: <012501c00c64$65028220$0200000a@development1> From: "Daryl Chance" To: "George Osvald" , References: <000001c00c63$c5f77b40$99f438cb@gosvald> Subject: Re: crontab Date: Tue, 22 Aug 2000 13:11:25 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG one way would be to pipe the pid to a file whn it starts (i think it can be done) and from there, add a check at the beginning to check the file, it it exists, exit();, at the end, rm the file. HTH, -------------------------------------------------------- | Daryl Chance | I have made this letter longer then | | Valuedata, LLC | usual because I lacked the time to | | Memphis, TN | make it shorter. -- Blaise Pascal | -------------------------------------------------------- ----- Original Message ----- From: "George Osvald" To: Sent: Tuesday, August 22, 2000 1:07 PM Subject: crontab > Hello everyone! > > My ISP where I have my web page, is running freeBSD 4.0. I do not know a lot > about it. I know how to use crontab to start a script at certain time how > ever how do I use crontab to check on the script that is already running? I > have a long running script and restarting it when it is already running > doesn't make sense. That only produces a error message. > > to start it I would be using something like: > > 5 * * * * root ./start > > This would start the script every five minutes. Now how do I check if the > script is running after it's been started and if it wasn't to restart it > again. Can anyone help? > > Regards, > > George Osvald > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message