Grant Peel wrote:
Hi all,

When using cron, I understand the >/dev/null thing OK, but what exactly does >2&1 do? Is it usefull anywhere else? Where might one find ducumentation on it?


The standard stream stdout has the assigned number 1, and the stderr has number 2. The >/dev/null redirects stdout to /dev/null and 2>&1 means redirecting stderr to stdout, so it goes to /dev/null as well.

Gabor Kovesdan
_______________________________________________ mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
  • Re: 2>&1 Kövesdán Gábor

Reply via email to