in reply to Re: Disable output from system
in thread Disable output from system

Hi, Roland. You wrote: system('tar .... >'.devnull.' 1>&2'); # works on *nix and windoze As I can see you redirect STDOUT to devnull and then again you redirect STDOUT to STDERR... Is this correct? I think it is typo, isn't it?

Replies are listed 'Best First'.
Re^3: Disable output from system
by rovf (Priest) on Mar 26, 2009 at 13:43 UTC
    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

    '....>'.devnull.' 2>&1'
    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.

    -- 
    Ronald Fischer <ynnor@mm.st>