you redirect STDOUT to devnull and then again you redirect STDOUT to STDERR... Is this correct?
Sorry, a typo indeed. Of course you have to do something like
and not "1>&2". I mistakingly exchanged 2 and 1. My point was that you have to redirect *first* to devnull, and *then* do the 2>&1, not the other way around.'....>'.devnull.' 2>&1'
In reply to Re^3: Disable output from system
by rovf
in thread Disable output from system
by ewhitt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |