From owner-freebsd-questions@FreeBSD.ORG Tue May 22 12:12:29 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BF74106568D for ; Tue, 22 May 2012 12:12:29 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 83E7F8FC18 for ; Tue, 22 May 2012 12:12:28 +0000 (UTC) Received: from mr17.lnh.mail.rcn.net ([207.172.157.37]) by smtp02.lnh.mail.rcn.net with ESMTP; 22 May 2012 08:12:22 -0400 Received: from smtp04.lnh.mail.rcn.net (smtp04.lnh.mail.rcn.net [207.172.157.104]) by mr17.lnh.mail.rcn.net (MOS 4.3.4-GA) with ESMTP id BMR27801; Tue, 22 May 2012 08:12:22 -0400 Received: from 209-6-86-84.c3-0.smr-ubr2.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.86.84]) by smtp04.lnh.mail.rcn.net with ESMTP; 22 May 2012 08:12:20 -0400 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20411.33442.423721.174389@jerusalem.litteratus.org> Date: Tue, 22 May 2012 08:12:18 -0400 To: Jos Chrispijn In-Reply-To: <4FBB7D72.9090507@webrz.net> References: <4FBB7D72.9090507@webrz.net> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr17.lnh.mail.rcn.net) Cc: freebsd-questions@freebsd.org Subject: 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 12:12:29 -0000 Jos Chrispijn writes: > 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 1) rsync is a port. 2) by default, ports install executables to /usr/local/bin 3) by default, "do_daily_run" will inherit its environment - including PATH - from crontab(5) (system or per-user). 4) by default, the crontab PATH does not include /usr/local/bin. (There is a reason for this.) Recommended solution: provide the full path to rsync. Robert Huff