[gentoo-user] Cron Jobs.

2005-01-20 Thread Tony Boom
Hello gentoo-user, Can someone please tell me how to set up a cron job? I've been reading about it all day but can't get it to work. I want to download a jpg at 10 past the hour every three hours. I tried this in /etc/crontab but it won't work. 10 15 * * * wget -q

Re: [gentoo-user] Cron Jobs.

2005-01-20 Thread Chris Boot
Hi, Best way is to run 'crontab -e' as the user you want to set the crontab up for. You'll need to add that user to the 'cron' group in /etc/groups before it allow you to do it, unless you do it as root. Then, the line you want is probably: 10 */3 * * * wget -q -O

Re: [gentoo-user] Cron Jobs.

2005-01-20 Thread Niklas Herder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony Boom wrote: | Hello gentoo-user, | | Can someone please tell me how to set up a cron job? I've been reading | about it all day but can't get it to work. | | I want to download a jpg at 10 past the hour every three hours. I tried | this in

Re: [gentoo-user] Cron Jobs.

2005-01-20 Thread Neil Bothwick
On Thu, 20 Jan 2005 15:44:58 +, 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. -- Neil Bothwick

Re: [gentoo-user] Cron Jobs.

2005-01-20 Thread Tony Boom
Hello Niklas, Thursday, January 20, 2005, 3:55:58 PM, you wrote: NH Does the command work when you run it manually? Yes, it does but!!! It downloads 433,809 bytes but when I view the file it contains zero bytes. I deleted the original file and the new one reappears but zero bytes. -- Tony.

Re: [gentoo-user] Cron Jobs.

2005-01-20 Thread Bastian Balthazar Bux
Neil Bothwick ha scritto: On Thu, 20 Jan 2005 15:44:58 +, 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

Re: [gentoo-user] Cron Jobs.

2005-01-20 Thread Bastian Balthazar Bux
Tony Boom ha scritto: Hello Niklas, Thursday, January 20, 2005, 3:55:58 PM, you wrote: NH Does the command work when you run it manually? Yes, it does but!!! It downloads 433,809 bytes but when I view the file it contains zero bytes. I deleted the original file and the new one reappears but zero

Re: [gentoo-user] Cron Jobs.

2005-01-20 Thread James Hiscock
Yes, it does but!!! It downloads 433,809 bytes but when I view the file it contains zero bytes. I deleted the original file and the new one reappears but zero bytes. ...which isn't surprising, since you're only redirecting the output of wget to your file, and not saving the image properly

Re: [gentoo-user] Cron Jobs.

2005-01-20 Thread Chris Boot
Hi, On 20 Jan 2005, at 16:52, Tony Boom wrote: Hello Chris, Thursday, January 20, 2005, 3:52:18 PM, you wrote: CB Hi, CB Best way is to run 'crontab -e' as the user you want to set the crontab CB up for. You'll need to add that user to the 'cron' group in /etc/groups CB before it allow you to do

Re: [gentoo-user] Cron Jobs.

2005-01-20 Thread Tony Boom
Hello Chris, Thursday, January 20, 2005, 5:56:41 PM, you wrote: CB Yes, the crontab command makes a copy of your crontab in the temp CB folder, then it checks it for syntax and other problems when you exit CB the editor, before installing it for you. That's correct. I've done that now. I had