Page 1 of 1

how to delay execution time

Posted: Mon Jul 14, 2003 3:47 am
by toshesh
I am currently executing a command using shell_exec, which outputs some data. I want to run this in a sequence as below but would like to start the second one after the first one has finished outputting the data. Is there any way to detect the "end" of shell_exec (or finish outputing)?

$output1 = shell_exec($command1);
$output2 = shell_exec($command2);
$output3 = shell_exec($command3);


thanks!!

Posted: Mon Jul 14, 2003 9:29 am
by DuFF
Try using the sleep() function.