From owner-freebsd-questions Tue Aug 22 11: 8:37 2000 Delivered-To: freebsd-questions@freebsd.org Received: from angel.comcen.com.au (angel.comcen.com.au [203.23.236.69]) by hub.freebsd.org (Postfix) with ESMTP id B2BA337B423 for ; Tue, 22 Aug 2000 11:08:29 -0700 (PDT) Received: from gosvald (modem033.shaitan.comcen.com.au [203.56.244.153]) by angel.comcen.com.au (8.10.2/8.10.1) with SMTP id e7MI5LE44680 for ; Wed, 23 Aug 2000 04:05:22 +1000 (EST) From: "George Osvald" To: Subject: crontab Date: Wed, 23 Aug 2000 04:07:02 +1000 Message-ID: <000001c00c63$c5f77b40$99f438cb@gosvald> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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