Hi, How do you get the PID of a background process started using system()?
I tried this: my $Process = "C:\\foo\\foo.exe"; my $PID = system(1, $Process); and from what I can tell, $PID actually stored the PID of a CMD.exe, and it is that CMD.exe that launches $Process. The O'Reilly book says "...in non-UNIX terms, it [system] runs the program for you, and returns when it's done..." which I assume is what the CMD.exe is doing. PS. I am aware that Win32::Process does this, so no "...just use Win32::Process instead..." responses please :-). I would happily use Win32::Process if I could get it to redirect the output from the process. (See my previous posting). Thanks, Phil Morley _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
