Page 1 of 1

return from exec before finished in windows

Posted: Thu Jul 28, 2005 6:50 am
by tores
Hi

How can I return from a exec() call in windows before the executed program is finished.

The Code:

Code: Select all

exec(PHP_PATH.'php sql\\dobackup.php TICKET 2>&1', $output, $returned);
The 2>&1 part redirects stderr to stdout, so I can catch it with $output... Have tried redirecting to a file or to NUL without getting any results. I'm not to keen on using COM either, as it is a completly black area to me...

regards tores