[dokuwiki] Re: bin/indexer.php too chatty?

All he has to do is send the output of both STDERR and STDOUT to oblivion:

/bin/indexer.php > /dev/null 2&>1

If you want to preserve the error messages, if those go to STDERR, then leave off the 2&>1


Myron

Gabriel Birke wrote:
Hello,

when I went to our server administrator to set up bin/indexer.php as a cron
job he told me that commands running as cron jobs aren't supposed to output
anything except error messages. Attached to this mail you will find a patch
that adds a "-q" (quiet) command line option that suppresses all regular
output from indexer.php
What do you think?

BTW there is a small bug in the long option handling of indexer.php, see
FS#1249 (http://bugs.splitbrain.org/index.php?do=details&task_id=1249 )

Greetings,

Gabriel


--

_____________________
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/


--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: