liumiuyong
1/18/2017 - 6:29 AM

php并发执行命令

php并发执行命令

<?php
for($i=230;$i>=131;$i--){
    exec('php /www/php.com/admin_html/redeal_screen_name_search.php ' . $i . ' > /dev/null 2>&1 &');
    //exec('bash -c "exec nohup setsid php /www/php.com/admin_html/refetch_avatar.php '.$i.' > /dev/null 2>&1 &"');
}
exit();