From owner-freebsd-questions Fri Feb 23 10:19:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dsl-64-193-218-89.telocity.com (dsl-64-193-218-89.telocity.com [64.193.218.89]) by hub.freebsd.org (Postfix) with SMTP id 11EC537B401 for ; Fri, 23 Feb 2001 10:19:14 -0800 (PST) (envelope-from lucas@slb.to) Received: (qmail 24318 invoked by uid 1000); 23 Feb 2001 18:19:33 -0000 Date: Fri, 23 Feb 2001 12:19:32 -0600 From: Lucas Bergman To: Kalai Kalaiarasi Cc: freebsd-questions@freebsd.org Subject: Re: crontab Message-ID: <20010223121932.C28130@billygoat.slb.to> Reply-To: lucas@slb.to References: <20010223110229.A28130@billygoat.slb.to> <20010223170600.13135.qmail@web118.yahoomail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010223170600.13135.qmail@web118.yahoomail.com>; from kalaiarasi@yahoo.com on Fri, Feb 23, 2001 at 09:06:00AM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > I have wrote a shell script and trying to run it automatically > > > by using crontab... but the shell script doesnt seem to be > > > executed by the crontab. Shell script works fine when being > > > executed manually. Something wrong with the crontab.... I have > > > edited the crontab file as below: > > > > > > 0 9 * * * /apps/sbldev/script/analysis > > > > > > But....there shell script is not being executed at the specified > > > time (9am) > > > > Did you edit the /var/cron/tabs/whoever file directly, or did you > > use the `crontab' command? If you edit the file directly, you > > need to touch /var/cron/tabs before the `cron' daemon will pick up > > the change. > > I used the crontab command 'crontab -e' to edit. Good. You can check /var/log/cron to see if cron is running your script at all (I imagine it is, since your crontab looks fine). If your script shows up in the log, and you're still not getting the output you expect, see what happens if you put 0 9 * * * /apps/sbldev/script/analysis >$HOME/analysis.out 2>&1 in your crontab. This way, if cron is running your script at all, it will create a file ~/analysis.out, and it will (hopefully) contain some useful error messages. Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message