All,
As part of a service I'm developing, I need to run an external command and
capture both its STDOUT and STDERR. The line:
my $rot = `path\\to\\command`;
saves the command's STDOUT into $rot as expected. However, when I change
this to:
my $rot = `path\\to\\command 2>&1`;
nothing gets saved in $rot (not even STDOUT).
Modifying the script and running it using srvany doesn't exhibit the same
problem, so I assume it's something to do with the way Win32::Daemon sets up
the environment for the script. Can anyone shed any light on this?
Thanks,
Paul Gould
--
> Paul Gould
> GTO Systems Management Services
> 01422 336916 (N.B. New Number)
> 07010 707514
> DC/G5/GTO/SMS
> [EMAIL PROTECTED]
------------------------------------------------------------------------------
Part of the Halifax Group, Halifax plc, Registered in England No. 2367076. Registered
Office: Trinity Road, Halifax, West Yorkshire HX1 2RG. Represents only the Halifax
Financial Services Marketing Group for the purposes of advising on and selling life
assurance, pensions and unit trust business. The Marketing Group is regulated by the
Personal Investment Authority. Switchboard 01422 333333.
==============================================================================
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users