in reply to Exiting from capturing output in a while?

Hello. This is what I've done, it runs fine except the only problem is that it complains about not being able to write to the ">" destination (new_logfile.txt).
use Win32::Process; $program = "c:\\perl\\scripts\\tail.exe"; $arg0 = " > c:\\perl\scripts\\logfile.txt > c:\\perl\\scripts\\new_log +file.txt"; Win32::Process::Create($ProcessObj, "$program", "$arg0", 0, NORMAL_PRI +ORITY_CLASS, ".")|| die ErrorReport(); until ($endit < time) { next; } $pid = $ProcessObj->GetProcessID(); Win32::Process::KillProcess($pid, $exitcode);