Re: howto disable cron output

From: Date: Wed, 14 Aug 2002 01:54:38 +0000
Subject: Re: howto disable cron output
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-112465@lists.php.net to get a copy of this message
On Tue, 13 Aug 2002 18:42:17 -0700 (PDT), you wrote: >i wrote an ecard script and added 'send at a future date' feature. >this feature is implemented via cron that runs daily at 1200 hours > >$> crontab -l looks like: >00 00 * * * wget http://ecard.domain.com/futuresend.php >2&1> /dev/null > >it works great but everyday there will be a file being written to my ecard >directory. [...] Two solutions: (1) Use lynx (or links) instead of wget, with the -dump option. (2) Otherwise, use the wget's -O option with a dash to get it to output it's file to STDOUT, which you are trashing anyway: wget -O - http://ecard.domain.com/futuresend.php > /dev/null 2>&1

« previous php.general (#112465) next »