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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php