[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Writing CRON job to null.



On Tue, Apr 27, 1999 at 10:36:59AM +0200, Per-Olof Widstrom wrote:
> > 	command >/dev/null 2>&1
> > 
> What does the "2" and "1" stand for, and the "&" ?
> One is standard output, right?
2 means standard error
& means merge it with 1 (i.e. standard output)

So the whole thing is:
 - first redirect standard output to the bit bucket
 - then let standard error go the same way as standard output
or short: throw away any output

Nils

--
Plug-and-Play is really nice, unfortunately it only works 50% of the time.
To be specific the "Plug" almost always works.            --unknown source

Attachment: pgp9ABWCIAIV1.pgp
Description: PGP signature


Reply to: