return from exec before finished in windows
Posted: Thu Jul 28, 2005 6:50 am
Hi
How can I return from a exec() call in windows before the executed program is finished.
The Code:
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
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);regards tores