Forgive me for starting a new topic on this one, but for some reason, there was no web link on your original message, making replying quite difficult...
Original message....
> Hoping for a little guidance. I want to set up a cron job to fetch
> content for my web site. Specifically I want to get slashdot.xml
> everyday from
www.slashdot.org I'm using
> wget
http://www.slashdot.org/slashdot.xml -O
/path/to/primary/web-site/directory/slashdot.xml
> to get the file. When I execute this command manually, it works fine.
> However, I managed to get /etc/crontab to look like
[...]
00 20 * * * wget
http://www.slashdot.org/slashdot.xml -O /home/e-smith/files/primary/html/myprojects/xml/slashdot.xml
[...]
> through a custom template, but it doesn't work! I'm assuming this is
> meant to be run everyday at 8:00 pm.
You're missing the user name to run the cron job as. try the following line instead...
00 20 * * * root wget
http://www.slashdot.org/slashdot.xml -O /home/e-smith/files/primary/html/myprojects/xml/slashdot.xml
It would be better to find a user with less privilages than root to run this job as, though. (anyone care to make a suggestion?)