From owner-freebsd-questions@FreeBSD.ORG Tue May 22 17:16:59 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 96E93106564A for ; Tue, 22 May 2012 17:16:59 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id 05EF08FC1C for ; Tue, 22 May 2012 17:16:58 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5) with ESMTP id q4MHGvr6061197; Tue, 22 May 2012 19:16:57 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5/Submit) with ESMTP id q4MHGvEq061194; Tue, 22 May 2012 19:16:57 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 22 May 2012 19:16:57 +0200 (CEST) From: User Wojtek To: Jos Chrispijn In-Reply-To: <4FBB7D72.9090507@webrz.net> Message-ID: References: <4FBB7D72.9090507@webrz.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Tue, 22 May 2012 19:16:58 +0200 (CEST) Cc: freebsd-questions@freebsd.org Subject: Re: Startup from script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2012 17:16:59 -0000 > > In my crontab I define script 'do_daily.run': > 30 23 * * * root > /root/cronjobs/do_daily.run > > The content of this script (amongst others) is: > rsync -avpog /etc /backup/$DATE/ > > Funny thing now is that in the output of the script, the following appears: > /root/cronjobs/do_daily.run: rsync: not found > > file credentials of the script itself: > -rwx------ 1 root wheel 246 Jun 20 2010 do_daily.run > > What do I oversee here? > add PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin in the beginning of your crontab your default $PATH is NOT cron default $PATH