In a message dated: Fri, 05 Oct 2001 15:53:07 EDT
"Evan A. Zacks" said:

>[forwarded submission from a non-member address -- rjk]
>
>From: "Evan A. Zacks" <[EMAIL PROTECTED]>
>Date: Fri, 5 Oct 2001 15:04:37 -0400
>Subject: Re: [Boston.pm] Safe execution of 1 perl prog from another?
>To: [EMAIL PROTECTED]
>
>One option is to open a pipe from 'minus' to fork a child whose STDOUT
>will be available to the parent through the pipe. Then have the child
>exec() the command line program. You'll want to redirect the child's
>STDERR to STDOUT before exec'ing, though.
[...code example snipped...]
>perldoc perlipc and read the section under 'Using open() for IPC' for
>more details. 

Ahhhh!  Why didn't I think of that!  I've done that before in C, why 
not perl :)

Thanks,

I'll try that!
-- 

Seeya,
Paul
----

                          God Bless America!

        ...we don't need to be perfect to be the best around,
                and we never stop trying to be better. 
                       Tom Clancy, The Bear and The Dragon


Reply via email to