Hi *!

Nelson R. Pardee wrote:
> Chris,
> 
> Do you absolutely need backticks? You can invoke a command/program and
> capture stdin, stdout with OPEN2, and stderr with OPEN3. I haven't done it
> in ActivePerl although I have in Unix. I do know they don't work well for
> my purposes with another perl script, but they might work with a system
> command or standard program.
> 
> On Sun, 1 Apr 2007, Chris Rodriguez wrote:
> 
>> Bill Luebkert <[EMAIL PROTECTED]> wrote: Chris Rodriguez wrote:
>>> Hi everyone,
>>> I saw the following on another PERL list-serve:
>>>
>>> "If you are on windows, then see perlfaq8 if ActiveState perl for
>>> how to redirect STDOUT and STDERR when doing backticks."
>>>
>>>  I'd like to be able to capture STDOUT as a string. But nothing on
>>>  perlfaq8 struck me as relevant. Did I miss something? How do I do
>>>  this?  I frequently get drastic errors (my computer shuts down!) when
>>>  I try to use backticks.

maybe not the smartes way of doing it, but that's what I use for
capturing STDOUT/STDERR

$LogFile = 'C:/Programme/Serv-Int-Programme/scwin_log.txt';
open _LOG, "+>>$LogFile" or warn "cannot open $LogFile!\n";
*STDOUT = *_LOG;
*STDERR = *_LOG;


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

Reply via email to