in reply to Async execution in Win32

system "start program 2>Xerr >Xout";

Update: Doh! In the above, the redirections apply to start, but not to program. Here is something that works (tested):

system 1, 'program 2>Xerr >Xout';

Replies are listed 'Best First'.
Re^2: Async execution in Win32
by BrowserUk (Patriarch) on Mar 15, 2006 at 02:15 UTC

    Your start version seems to work for me?

    [0] Perl> system q[cmd /c del errors output];; [0] Perl> system q[start /b perl -le"print for 1..10; die 'An error';" + 2>errors 1>output];; [0] Perl> system q[cmd /c type errors output];; errors An error at -e line 1. output 1 2 3 4 5 6 7 8 9 10

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      You added "/b". That made a difference.