Thank you for taking the time to point me to the right doc... that is exactly what I needed. I can see that one will come in handy in the future.
I am trying to call an external command and capture the output in my perl script. I don't use backticks because my script needs to run on both Windows and Linux and I have problems making the shell quoting and escaping work for both platforms. Using exec or system solves this problem. Is there a way to run an external command using system or exec and capture its output that works on Win32? Sincerely, James. -----Original Message----- From: Jan Dubois [mailto:[EMAIL PROTECTED] Sent: Monday, January 29, 2007 3:35 PM To: James Couball Cc: [email protected] Subject: Re: Safe Pipe Opens Supported? On Mon, 29 Jan 2007 15:27:37 -0800, "James Couball" <[EMAIL PROTECTED]> wrote: >Are "Safe Pipe Opens" as described here: >http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/lib/Pod/perlipc.ht m >l#safe_pipe_opens > >supported in ActivePerl? > >Whenever I try this statement: >$pid = open(KID_TO_READ, "-|"); You can find out about the portability of builtin functions by reading perlport.pod: | open The "|" variants are supported only if ToolServer is installed. | (Mac OS) | | open to "|-" and "-|" are unsupported. (Mac OS, Win32, RISC OS) | | Opening a process does not automatically flush output handles on | some platforms. (SunOS, Solaris, HP-UX) Also available here: http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/lib/Pod/perlport.ht ml#alphabetical_listing_of_perl_functions As you can see, your usage above is not supported on Windows. Cheers, -Jan _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
