Andy Speagle wrote:
> Hi again...
>
> I've worked out how to use this... and in the CGI, I'm trying to
> redirect STDOUT to a file... which works fine... EXCEPT that all child
> processes created with Win32::Process will NOT direct their output to
> the file that's opened... and this is how I'm creating the processes...
You could try having each child open the file in append mode instead of
inheriting the handles.
> sub CopyProcess {
> my ($strSource, $strDest) = @_;
> my $obj;
>
> my $command = "xcopy ".$strSource." ".$strDest." /f /u /y";
>
> Win32::Process::Create ($obj,
> "c:/windows/system32/cmd.exe",
> "cmd /c ".$command,
> 1,
> NORMAL_PRIORITY_CLASS,
> '.'
> ) || die "Win32::Process::Create: $! ($^E)";
> return $obj;
> }
>
> This all works fine in a console... so once again... I'm afraid that
> this sort of thing doesn't work right when handled as a CGI...
It's not about CGI, it's about IIS. There could be some config issues
with IIS.
> Thoughts?
Try Apache ?
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs