From owner-freebsd-questions Fri Feb 23 21:24:29 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gscamnlh01.wr.usgs.gov (gscamnlh01.wr.usgs.gov [130.118.4.115]) by hub.freebsd.org (Postfix) with ESMTP id A2AD137B401; Fri, 23 Feb 2001 21:24:26 -0800 (PST) (envelope-from rsowders@usgs.gov) To: Kalai Kalaiarasi Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@FreeBSD.ORG Subject: Re: crontab for root X-Mailer: Lotus Notes Release 5.0.3 March 21, 2000 Message-ID: From: rsowders@usgs.gov Date: Fri, 23 Feb 2001 21:24:23 -0800 X-MIMETrack: Serialize by Router on gscamnlh01/SERVER/USGS/DOI(Release 5.0.3 |March 21, 2000) at 02/23/2001 09:24:25 PM, Serialize complete at 02/23/2001 09:24:25 PM MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The /etc/crontab is referred to as the system crontab. Root's crontab, edited with crontab -e is for the SysAdmin to use. All crontabs run in /bin/sh. Make sure your jobs execute from the command line by entering /bin/sh first then try your job. Use full pathnames or point to scripts with full pathnames. It is a good idea to leave the /etc/crontab alone and use crontab -e as root because subsequent upgrades to the /etc/crontab will not effect you. more /var/log/cron to see if your job kicked off. By default mail is sent to the owner of the crontab file if there is any output from your job unless you specify other wise in the crontab with a mail to statement or a /dev/null. If you are running cron jobs as root check mail for root to see errors from cron jobs. For more indepth study. man crontab man 5 crontab man cron Kalai Kalaiarasi Sent by: owner-freebsd-questions@FreeBSD.ORG 02/23/2001 06:52 PM To: freebsd-questions@freebsd.org cc: Subject: crontab for root Hi, Does anyone knows how to set crontab for root? I am able to set the crontab for normal user and it's working fine. When i try set crontab for root, the shell script doesnt seem to run. Is there anything else i need to do?? Please do help me.... Please reply to this email add, i am not subscribed to the mailing list. Regards, Kalai __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ 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