PDA

View Full Version : Cron wont work


tamenti
05-21-2002, 10:15 AM
My cronjobs wont work :(
I finally figured out how to update my dyndns.dk domain via the terminal and curl.
So now I want it to do it via cron, naturally. I followed the tip her on how to make a user crontab file. it looks like this (without the header):
#min hour mday month wday user command
* * * * * curl 'my url'

But it just wont do anything. I did the "crontab mycrontab" command.
The curl command works perfectly in the terminal, so I think the problem lies in cron. Does the file mycrontab need any special privileges?

mervTormel
05-21-2002, 12:50 PM
this worked fine for me...

$ crontab -l

MAILTO=merv

*/2 * * * * /usr/bin/curl 'theURL' | tee /tmp/curl.log


try tee pipe fitting to a log file and see what it says.

tamenti
05-22-2002, 05:19 AM
I got it to work, installed X again. (note to myself: stop messing around with permissions ;)
It works like a charm now. I keep getting more and more impressed by X, how did I ever manage without a command line ;D

Tamen.