Re: [PHP] howto disable cron output

2002-08-13 Thread Michael Sims

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




[PHP] howto disable cron output

2002-08-13 Thread Roger Thomas

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.

this file is named futuresend.php.1
the next day there will be another file called futuresend.php.2
so on and so forth.

how do i stop Solaris/Linux from spitting this file out ?

--
roger


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php