Re: How do i run exec and catch stdio and stderr in a local stringvairable (not a file) ...
More specifically:
i am calling system("....som ething...") ... and i would like to capture
stderr and stdout in seperate variables ...
Jim
Random Task wrote:[color=blue]
> How do i run exec and catch stdio and stderr in a local string vairable
> (not a file) ...
>
> Thanks very very much,
> Jim[/color]
Re: How do i run exec and catch stdio and stderr in a local string vairable (not a file) ...
In article <aaSFe.4729$q23 .755041@news20. bellglobal.com> , Random Task
<Random@Task.be > wrote:
[color=blue]
> More specifically:
>
> i am calling system("....som ething...") ... and i would like to capture
> stderr and stdout in seperate variables ...
>
> Jim
>
>
> Random Task wrote:[color=green]
> > How do i run exec and catch stdio and stderr in a local string vairable
> > (not a file) ...
> >
> > Thanks very very much,
> > Jim[/color][/color]
You have asked a Frequently Asked Question, and the answer may be found
with
perldoc -q capture
FYI: this newsgroup is defunct. Try comp.lang.perl. misc in the future.
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Re: How do i run exec and catch stdio and stderr in a local string vairable (not a file) ...
[Please do not top-post full-quote. That is considered quite rude by many
readers]
Random Task wrote:[color=blue][color=green]
>> How do i run exec and catch stdio and stderr in a local string
>> vairable (not a file) ...[/color]
> More specifically:
>
> i am calling system("....som ething...") ... and i would like to
> capture stderr and stdout in seperate variables ...[/color]
You would do it the way as described in the documentation of the function
that you are using (perldoc -f system, third paragraph, third sentence) or
the way it is described in the FAQ (perldoc -q stderr; perldoc -q "with
systen").
Re: How do i run exec and catch stdio and stderr in a local stringvairable (not a file) ...
Thanks all!
Jürgen Exner wrote:[color=blue]
> [Please do not top-post full-quote. That is considered quite rude by many
> readers]
> Random Task wrote:
>[color=green][color=darkred]
>>>How do i run exec and catch stdio and stderr in a local string
>>>vairable (not a file) ...[/color]
>>
>>More specifically:
>>
>>i am calling system("....som ething...") ... and i would like to
>>capture stderr and stdout in seperate variables ...[/color]
>
>
> You would do it the way as described in the documentation of the function
> that you are using (perldoc -f system, third paragraph, third sentence) or
> the way it is described in the FAQ (perldoc -q stderr; perldoc -q "with
> systen").
>
> jue
>
>[/color]
Comment