cron - which syntax works?

  • kappler0
  • 12/20/11
  • Offline
Posted: Fri, 2012-01-27 23:22

Hi, I have several cron jobs running and they are all creating those blank files in root. For some reason the ">/dev/null 2>&1" i added to the end of the cron commands are not keeping from creating these files.

Am i missing something here? Will these work?

wget -q -O /dev/null http://......

wget --delete-after -q http://......


Howdy, There's multiple ways

  • andreychek
  • 01/04/09
  • Offline
  • Sat, 2012-01-28 14:51


There's multiple ways to do what you're after,

I've personally used this one, and it seems to do the trick:

wget -O /dev/null http://domain.tld > /dev/null