cron - which syntax works?

2 posts / 0 new
Last post
#1 Fri, 01/27/2012 - 23:22
kappler0 Pro Licensee

cron - which syntax works?

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

Sat, 01/28/2012 - 14:51
andreychek

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