>system "my_command 2>&1 NUL"


First time I see this syntax. 
As far as I can say, it doesn't work. 
The correct form should be :  

my_command > NUL  2>&1 

_____________________________________________
Bruno Bellenger
Sr. Network/Systems Administrator 


        -----Original Message-----
        From:   Jeffrey [SMTP:[EMAIL PROTECTED]]
        Sent:   Friday, March 01, 2002 5:20 PM
        To:     Lawrence Lordanich (x11486); perl win32 users
        Cc:     porters
        Subject:        Re: capturing output from system() ...

        --- "Lawrence Lordanich (x11486)"
        <[EMAIL PROTECTED]> wrote:
        > I am from a Unix world. How do you capture or send
        > to /dev/null output from 
        > a program run with Perl's system call on win32? I am
        > used to '2>&1 /dev/null'.

        It's very similar.  But I'm not sure exactly what the
        above segment does -- redirect stderr to stdout I
        understand just fine, but there's no redirect to null.

        So on Win32, it'd be something like
        system "my_command 2>&1 NUL"
        to do what you mentioned.

        HTH

        =====
        ------------------------------------
        Jeffrey Hottle
        nkuvu at monkey yahoo dot com
        (remove the animal to email me!)

        __________________________________________________
        Do You Yahoo!?
        Yahoo! Greetings - Send FREE e-cards for every occasion!
        http://greetings.yahoo.com
        _______________________________________________
        Perl-Win32-Users mailing list
        [EMAIL PROTECTED]
        To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to