> Can you get by without the pipe and do something simpler with a file
> and Win32::Process ? :
>
> use Win32::Process;
>
> my $pObj;
> my $file = "C:\\test.log";
>
> Win32::Process::Create($pObj, "$ENV{WINDIR}\\system32\\cmd.exe",
> "cmd /C dir 2>&1 >$file", 0, NORMAL_PRIORITY_CLASS, "C:\\")
Paul Sobey wrote:
> Guys,
>
> I have a threaded service written in perl which spawns a child process
> and sends STDOUT/STDERR to disk via windows anonymous pipes. The service
> works perfectly in test, and has now gone live across several servers in
> our company. The service uses Win32::API to
Guys,
I have a threaded service written in perl which spawns a child process
and sends STDOUT/STDERR to disk via windows anonymous pipes. The service
works perfectly in test, and has now gone live across several servers in
our company. The service uses Win32::API to call the api CreateProcess
func
Dear All,
Does anyone have a working example of using Win32::API to call CreateProcess, and pass
in filehandles for the child to inherit?
I'm running a service using Win32::Daemon, and need to spawn a console process and
read back both STDOUT and STDERR. The process is expected to last for ar