How to stop a cron job sending email
Johann Spies
jspies at sun.ac.za
Fri Oct 31 12:07:56 UTC 2008
On Fri, Oct 31, 2008 at 10:58:59AM +0000, Chris Rees wrote:
> > The actual redirect should be 2>&1
>From 'man bash'
Redirecting Standard Output and Standard Error
Bash allows both the standard output (file descriptor 1) and
the standard error output (file descriptor 2) to be redirected
to the file whose name is the expansion of word with this construct.
There are two formats for redirecting standard output and
standard error:
&>word
and
>&word
Of the two forms, the first is preferred. This is semantically
equivalent to
>word 2>&1
Regards
Johann
--
Johann Spies Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch
"Bless the LORD, O my soul, and forget not all his
benefits: Who forgiveth all thine iniquities; who
healeth all thy diseases; Who redeemeth thy life from
destruction; who crowneth thee with lovingkindness and
tender mercies; Who satisfieth thy mouth with good
things; so that thy youth is renewed like the
eagle's." Psalms 103:2-5
More information about the ubuntu-users
mailing list