I have five exec() function in my script, which run one after another. I want exec() function stops its execution after 10 sec and next exec() function starts its execution.
<?php
exec("/usr/local/bin/wrun 'uptime;ps -elf|grep httpd|wc -l;free -m;mpstat'",$uptime);
foreach($uptime as $load){
echo $load."<br />";
}
exec("/usr/local/bin/trun 'uptime;ps -elf|grep httpd|wc -l;free -m;mpstat'",$uptime);
foreach($uptime as $load){
echo $load."<br />";
}
exec("/usr/local/bin/drun 'uptime;ps -elf|grep httpd|wc -l;free -m;mpstat'",$uptime);
foreach($uptime as $load){
echo $load."<br />";
}
.......
?>