Re: Program Execution and reading results

From: Date: Thu, 21 Jun 2007 09:04:29 +0000
Subject: Re: Program Execution and reading results
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-257540@lists.php.net to get a copy of this message
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

« previous php.general (#257540) next »