Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2012 08:12:18 -0400
From:      Robert Huff <roberthuff@rcn.com>
To:        Jos Chrispijn <kernel@webrz.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Startup from script
Message-ID:  <20411.33442.423721.174389@jerusalem.litteratus.org>
In-Reply-To: <4FBB7D72.9090507@webrz.net>
References:  <4FBB7D72.9090507@webrz.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20411.33442.423721.174389>