From owner-freebsd-questions Fri Jun 15 19:19:13 2001 Delivered-To: freebsd-questions@freebsd.org Received: from kineo.bowdoin.edu (kineo.bowdoin.edu [139.140.14.35]) by hub.freebsd.org (Postfix) with ESMTP id B43DE37B407 for ; Fri, 15 Jun 2001 19:18:51 -0700 (PDT) (envelope-from mcowger@bowdoin.edu) Received: from mcfly ([139.140.133.82]) by kineo.bowdoin.edu (Netscape Messaging Server 4.15) with SMTP id GF03RE00.8CG; Fri, 15 Jun 2001 22:18:50 -0400 From: "Matthew K. Cowger" To: "Peter Kok" , Subject: RE: what's wrong for the cron job Date: Fri, 15 Jun 2001 22:20:12 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <3B2AC119.5322D810@hotmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 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 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 /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