Startup from script

RW rwmaillists at googlemail.com
Tue May 22 12:07:21 UTC 2012


On Tue, 22 May 2012 13:50:10 +0200
Jos Chrispijn wrote:

> I have this issue with running commands from a script:
> 
> 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
> 
You need to set PATH in the crontab or script, or use the full path for
rsync.


More information about the freebsd-questions mailing list