Here are a couple of examples of code that I have used. I use it to capture
output from scritpts/exe that I run during installation of ancient legacy apps
to capture output into log files.
Example 1:
Here is how I output a windows command use backquote to capture SDTOUT and
STDERR.
@msgs =
- Original Message -
From: ?? ? [EMAIL PROTECTED]
.
.
perl Cookbook says that STDERR can be directed to STDOUT
by 'open(STDERR, STDOUT)', but external command's STDERR
cann't be:
open(STDERR, STDOUT);
@ret = `$cmd`;
is there any standard way?
Try:
@ret = `$cmd 21`;
Cheers,
Try:
@ret = `$cmd 21`;
Thanks so much,
I tested it found OK.
Regards,
Hirosi Taguti
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs