setting up a cron job

Asked by thaironius

Hi, I get the following error when I try setting up a cron job:

 0 1 * * * /usr/bin/wget -o - -q http://localhost/html/cron.php
bash: 0: command not found

I'm trying to wget to visit http://localhost/html/cron.php every day at 1 AM for my drupal site. The command I'm following is the one provided by http://drupal.org/cron.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
thaironius
Solved:
Last query:
Last reply:
Revision history for this message
Thanos Koukoulis (thanosk-gmail) said :
#1

Can you tell us how you tried to set up the cron job ?

Revision history for this message
Thanos Koukoulis (thanosk-gmail) said :
#2

Can you tell us how you tried to set up the cron job ?

Revision history for this message
thaironius (thaironius) said :
#3

With further research, I realized I have to edit the cron file in order to create a cron job. I just typed "crontab -e" then inserted the command
" 0 1 * * * wget -O - -q -t 1 http://localhost/html/cron.php". It seems to be working now. Thanks!