0 * * * * wget -O - -q -t 1 http://www.example.com/cron.php

daouverson2 - November 27, 2007 - 18:18

What's the "0 -" about?

0 * * * * wget -O - -q -t 1 http://www.example.com/cron.php

I've commented on http://drupal.org/node/31549

Thanks.

Which bit?

styro - November 27, 2007 - 20:12

The 0 * * * * basically means run hourly - eg on the zeroth minute of every hour on every day etc

see: http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5

Or if you meant the -O - bit, that means send the output to stdout rather than saving it to a file. -O is the option for output file, and if the output file is -, then use stdout instead and turn on 'quiet'. Basically in this case (ie no pipe or output redirection) it just means discard the output.

see: http://www.cbi.pku.edu.cn/Doc/CS/wget/man.wget.html

--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal

That was what I was looking for ...

daouverson2 - December 4, 2007 - 00:23

Thanks.

===
Doug O.

-t 1

whatdoesitwant - October 26, 2009 - 21:43

What's the -t 1 about? I can't find it in the man pages and elysia_cron suggests i drop it.

...of je stopt de stekker erin.

number of retries

styro - October 28, 2009 - 02:51

http://linux.die.net/man/1/wget

Without that it will retry up to 20 times by default. You probably wouldn't want that on a busy server.

--
Anton

 
 

Drupal is a registered trademark of Dries Buytaert.