makhan wrote:
Thanks Paul for your response. my issue is not just reading from the output text file. But my issue is what I would do in the php script while the program is execting( i.e after issueing shell_exec() command) and how would i know that file has been written so that i can read it using php.
Not having read the rest of the thread, the script would issue the exec() or shell_exec() command and continue only when the command has finished. You can see this (on Unix) by this code:
<?php exec('sleep 60'); ?> In effect, this script will wait 60 seconds before ending. -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php