From owner-freebsd-questions Wed Nov 26 11:03:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA10025 for questions-outgoing; Wed, 26 Nov 1997 11:03:55 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from uniqsite.com (uniqsite.com [206.14.149.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA10016 for ; Wed, 26 Nov 1997 11:03:51 -0800 (PST) (envelope-from timm@uniqsite.com) Received: from localhost (timm@localhost) by uniqsite.com (8.8.5/8.8.5) with SMTP id LAA09437; Wed, 26 Nov 1997 11:02:30 -0800 (PST) Date: Wed, 26 Nov 1997 11:02:30 -0800 (PST) From: Tim Moony To: Nel cc: questions@FreeBSD.ORG Subject: Re: help with crontab In-Reply-To: <3.0.32.19971127031350.0076f6cc@interfusion.aus.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 27 Nov 1997, Nel wrote: > > Hi, > > How do i set up a cron job or whatever u call it so that it will check that > my eggdrop is running and if not then reload it? Thanks for anyhelp. I'm in > FreeBSD 2.2.4 and i run eggdrop1.0p > > Thanks again > OK... I am not an expert, but let me try... # /etc/crontab - root's crontab for Uniqsite.com # # $Id: crontab,v 1.13 1996/01/06 22:21:37 ache Exp $ # From: Id: crontab,v 1.6 1993/05/31 02:03:57 cgd Exp # SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin HOME=/var/log # #minute hour mday month wday who command # */5 * * * * root /usr/libexec/atrun => */10 * * * * root /usr/bin/pppup>/dev/null #/5 * * * * root /usr/bin/pingisp>/dev/null # # rotate log files every hour, if necessary 0 * * * * root /usr/sbin/newsyslog # [SNIP] If you want to specify exat time (of day) for a specific event to kick in, look into the default /etc/crontab for daily and monthly event. On the marked line above, I want pppup command to run every 10 minutes (to make sure line never drops). Does that answer your question? - Tim - The heck, if you don't enjoy your life now, when???