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 it, unless you do it as root.


I'd already done that, added myself to the cron group. When I run crontab
-e where do I put it? It want'sto save into a temp folder?

Yes, the crontab command makes a copy of your crontab in the temp folder, then it checks it for syntax and other problems when you exit the editor, before installing it for you. That's correct.


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


So I wasn't for off, just got the source and destination the wrong way
round... Oh yes, missed a -O as well.

I have this in my /etc/crontab

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

When I run it direct it works perfect, put it in crontab and it doesn't.

If you put it in /etc/crontab you may need to restart your cron daemon. For vixie-cron (the default) you would do that using '/etc/init.d/vixie-cron restart'.


Am I starting the cron daemon correct with "crontab /etc/crontab" ?

To start the cron daemon itself you just use '/etc/init.d/vixie-cron start'. This should be started at boot for you, it's required for lots of regular maintenance work! To make sure it is, run 'rc-update add vixie-cron default'.


The crontab command is used only for editing cron tabs. Running 'crontab /etc/crontab' would fill your own crontab with the contents of /etc/crontab, probably not what you want.

Hope this helps!

--
Chris Boot
[EMAIL PROTECTED]
http://www.bootc.net/


-- [email protected] mailing list



Reply via email to