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?

-Grant

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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
  • Re: 2>&1 Kövesdán Gábor

Reply via email to