I need that every night at 2:00 am a call to a specific URl is made.
For this reason, I inserted in the cronotab services the following:
crontab -e 0 2 * * * wget -q -0 - "http://MYWEBSITE"
But it seems not working..
Where am I wrong?
There's an additional "-" that shouldn't be there, otherwise it looks good to me.
Do you have any mail in your personal /var/mail directory about this task? You should be notified by this when logging in, "You have new mail". Crontab will send you an email with the output of wget every time the task runs. This should tell you about errors, and successfull runs.
Edit: I don't see the "-0" parameter anywhere in the docs, what is it supposed to do?
Try to run it manually without -0 option with wget and also remove the extra - in the cmd. It it runs okay, make the changes in crontab accordingly. Also check the crontab logs for job history.
You might find that you're missing a newline at the end of your crontab - that will make the last entry be ignored.
Otherwise you'll need to see what is failng:
You can test the former by adding a new job like so:
Wait two minutes and see if it works. If it does then it means that your
Do not ask me why the "-0" or the single "-", I do not have idea what they are useful for, but they were suggested to me in another place
However, I found this working:
Anyway +1 each for your suggestions, thanks