RE: Win32::API and CreateProcess - strange intermittant problems

2005-07-14 Thread Paul Sobey
> 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:\\")

Re: Win32::API and CreateProcess - strange intermittant problems

2005-07-14 Thread $Bill Luebkert
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

Win32::API and CreateProcess - strange intermittant problems

2005-07-14 Thread Paul Sobey
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

Win32::API and CreateProcess

2004-07-13 Thread Paul Sobey
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