Hi! Please help me wih the following:
- perl running on Win2000 Server,
- Activestate build 806
Situation:
- (via browser): run.cgi?cmd=test.pl spawns a process running 'test.pl' in the background (Win32::Process::Open)
- The output of the spawned process is redirected to a logfile (now the process is independend and alsao the output is saved somewhere)
- A redirect takes place to logmonitor.cgi, and the pid is passed on, as well as the name of the logfile
- logmonitor.pid starts tailing the log
NOW THE PROBLEM ARISES!
- The tailing takes place as long as the pid exists (at least, it should work that way)
The pid is being checked by $obj->GetProcessID()
But all I get is '0', causing the log not to be tracked at all!
Question: Why does GetProcessID not work when used on a pid that's started in another process? Am i doing s'thing wrong here?
Thanks in advance! :-)