Fix: For When Cron Job Leave Mess in the Home Directory

Q: Why do I always get crap in my home directory even though my cron job looks like this:

*/15 * * * * wget http://site.com/cron.php >/dev/null 2>&1

A:

*/15 * * * * wget -O /dev/null http://site.com/cron.php >/dev/null 2>&1
This puts the output (-O) down the [unix] drain.

Leave a Comment

Name:

E-mail:

Website:

Comment:

Recent Comments

  • Josir Gomes: Hi Steve, the meta-package ubuntu-desktop is bloated with huge softwares like OpenOffice, Evolution,...
  • hannah: your that good! ha ha, but seriously.
  • Wiras Adi: Yeah, mathematic operation in text-based CAPTCHA is very easy to break. And I don't think that many sites...
  • Gary: Phew! You saved me lots of hassle :-) The only problem I had was that $_SERVER[’HTTP_AUTHORIZATION ’]...
  • Stephen: To touch on the issue Vinay raised, I had to use the -wholename option on the find command to delete files...

Else wheres