From owner-freebsd-questions Fri Jun 15 19:14:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.ca.inter.net (smtp.ca.inter.net [38.210.35.210]) by hub.freebsd.org (Postfix) with ESMTP id 2B24937B401 for ; Fri, 15 Jun 2001 19:14:27 -0700 (PDT) (envelope-from cckok00@hotmail.com) Received: from ip138.toronto104.dialup.canada.psi.net ([154.20.98.138] helo=hotmail.com) by smtp.ca.inter.net with esmtp (Exim 3.22 #1) id 15B5bb-0000ey-00 for freebsd-questions@FreeBSD.ORG; Fri, 15 Jun 2001 22:14:31 -0400 Message-ID: <3B2AC119.5322D810@hotmail.com> Date: Fri, 15 Jun 2001 22:14:49 -0400 From: Peter Kok X-Mailer: Mozilla 4.74 [en] (Win98; U) X-Accept-Language: en,zh-TW,zh-CN MIME-Version: 1.0 To: "freebsd-questions@FreeBSD.ORG" Subject: what's wrong for the cron job Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 /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