Date: Fri, 15 Jun 2001 22:20:12 -0400 From: "Matthew K. Cowger" <mcowger@bowdoin.edu> To: "Peter Kok" <cckok00@hotmail.com>, <freebsd-questions@FreeBSD.ORG> Subject: RE: what's wrong for the cron job Message-ID: <DBEDLOOHIDFHOMJIFMGMEEMFCBAA.mcowger@bowdoin.edu> In-Reply-To: <3B2AC119.5322D810@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Use the full path to sendmail..cron often has different environemnts than the user it is running as. on my box, its: /usr/sbin/sendmail...so try to following in your corntab: 0 22 * * 5 root /usr/local/bin/cvsrun | /usr/sbin/sendmail root -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Peter Kok Sent: Friday, June 15, 2001 10:15 PM To: freebsd-questions@FreeBSD.ORG Subject: what's wrong for the cron job Hi all I run cron job in accordance to the http://www.mostgraveconcern.com/freebsd/ Create /usr/local/bin/cvsrun: #!/bin/sh echo Subject: `hostname` weekly cvsup run output /usr/local/bin/cvsup -g -L 2 /usr/src/stable-supfile Make the scripts executable by root only: # chown root:wheel /usr/local/bin/cvsrun # chmod u+x /usr/local/bin/cvsrun 5.Edit /etc/crontab to run CVSup every Friday night: # Run cvsup every Friday night at 10:00 pm. 0 22 * * 5 root /usr/local/bin/cvsrun | sendmail root But I received the following message of mail? >Subject: Cron <root@peter> root /usr/local/bin/cvsrun | sendmail root >root: not found >sendmail: not found Could you tell me what wrong i did? Tks regards Peter 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DBEDLOOHIDFHOMJIFMGMEEMFCBAA.mcowger>