how to delay execution time

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
toshesh
Forum Commoner
Posts: 33
Joined: Thu Jun 19, 2003 9:32 pm

how to delay execution time

Post 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!!
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

Try using the sleep() function.
Post Reply