cron - which syntax works?

  • kappler0
  • 12/20/11
  • Offline
Posted: Sat, 2012-01-28 00: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://......

Thanks


Howdy, There's multiple ways

  • andreychek
  • 01/05/09
  • Offline
  • Sat, 2012-01-28 15:51

Howdy,

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