Neil Bothwick ha scritto:

On Thu, 20 Jan 2005 15:44:58 +0000, Tony Boom wrote:



10 15 * * * wget -q
http://www.wizabit.eclipse.co.uk/xplanet/files/local/clouds_2000.jpg >
/usr/share/xplanet/images/clouds_2000.jpg



Try using the full path for wget, it may not be in the path used by the cron process.




a bit off topic but I always add this header at my cron files (fixed width to see them):

#       hour (0-23),
#       |       day of the month (1-31),
#       |       |       month of the year (1-12),
#       |       |       |       day of the week (0-6 with 0=Sunday).
#       |       |       |       |       commands

and commands like this:

48 * * * * /usr/bin/ntpdate -su -b time.pnp
48 0-23/4 * * * for i in /usr/local/etc/webalizer/*.conf; do /usr/bin/webalizer -M5 -c $i; done
0-58/2 0-23 * * * /SRC/si/cron_ftp.php


the second command can be written as :
48 0,4,8,12,16,20 * * * for i in /usr/local/etc/webalizer/*.conf; do /usr/bin/webalizer -M5 -c $i; done
use what syntax is prefereable to you



env -i /path/command
should clean your environment (PATH variable is in your environment) and is a more fair way to try a command that should be run as a cron.


I like a lot that header ;)
ciao
francesco

--
[email protected] mailing list



Reply via email to