【发布时间】:2014-02-19 07:20:53
【问题描述】:
我希望exec() 在 php 中在给定时间后停止执行。
例如:
exec("/usr/local/bin/wrun 'uptime;ps -elf|grep httpd|wc -l;free -m;mpstat'",$admin_uptime)
20 秒后停止处决。
有没有可能……??
<?php
exec("/usr/local/bin/wrun 'uptime;ps -elf|grep httpd|wc -l;free -m;mpstat'",$admin_uptime);
?>
【问题讨论】:
标签: php