Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2012 19:16:57 +0200 (CEST)
From:      User Wojtek <wojtek@wojtek.tensor.gdynia.pl>
To:        Jos Chrispijn <kernel@webrz.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Startup from script
Message-ID:  <alpine.BSF.2.00.1205221916210.61179@wojtek.tensor.gdynia.pl>
In-Reply-To: <4FBB7D72.9090507@webrz.net>
References:  <4FBB7D72.9090507@webrz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> 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




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