On 18 Mar 2003 23:48:25 -, [EMAIL PROTECTED] (Steve Grazzini) wrote:
>James Kipp <[EMAIL PROTECTED]> wrote:
>> Navid M. <[EMAIL PROTECTED]> writes:
>>>
>>> I was wondering if it's possible to save the error of
>>> a DOS command from the error stream into a variable.
>>>
>> you could try the
> >>
> >> I was wondering if it's possible to save the error of
> >> a DOS command from the error stream into a variable.
> >>
> > you could try the old 2>&1 trick
> > $out = `$cmd 2>&1`;
> >
as others have mentioned, the above may depend on your which win32 OS you
are using.
works fine on my
James Kipp <[EMAIL PROTECTED]> wrote:
> Navid M. <[EMAIL PROTECTED]> writes:
>>
>> I was wondering if it's possible to save the error of
>> a DOS command from the error stream into a variable.
>>
> you could try the old 2>&1 trick
> $out = `$cmd 2>&1`;
>
> or use system() and read the docs for
Kipp, James wrote:
Hello,
I was wondering if it's possible to save the error of
a DOS command from the error stream into a variable.
For example, the STDOUT of a DOS command can be saved
to a variable this way:
$var = `dir`; # Using back quotes
but this won't save anything from STDERR.
you
> Hello,
>
> I was wondering if it's possible to save the error of
> a DOS command from the error stream into a variable.
>
> For example, the STDOUT of a DOS command can be saved
> to a variable this way:
>
> $var = `dir`; # Using back quotes
>
> but this won't save anything from STDERR.
y
Hello,
I was wondering if it's possible to save the error of
a DOS command from the error stream into a variable.
For example, the STDOUT of a DOS command can be saved
to a variable this way:
$var = `dir`; # Using back quotes
but this won't save anything from STDERR.
Thanks,
Navid M.
__