Subject: Re: cron output
To: None <netbsd-help@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: netbsd-help
Date: 11/16/2000 02:04:06
Masao Uebayashi <uebayasi@soum.co.jp> typed:
:> SHELL=/bin/shell

As said, you would normally want:
SHELL=/bin/sh

:> 15 * * * * /homes/mcmahill/tst.sh >/dev/null 2>&1

This redirects stdout to /dev/null then sends stderr there also.
This gives you no output and is probably what you want.

:O'Reilly's ``Essential System Administration'' writes the following
:example:
:30 3 * * 1 /bin/csh /usr/lib/uucp/uu.weekly 2>&1 >/dev/null

This redirects stderr to stdout and stdout to /dev/null.  The end
output (on stdout) is what was stderr.  If you don't want stderr
information then this is wrong.

:This example seems have the same intention of yours and does have
:different redirection from yours which seems correct for /bin/sh and
:should work.

:It would be help that correcting ``SHELL=...'' and/or examining
:behaviors of redirection of shells.

Most probably.

Regards,
-- 
Geoff Wing : <gcw@pobox.com>
Rxvt Stuff : <gcw@rxvt.org>
Zsh Stuff  : <gcw@zsh.org>