摘要:
等待外部程序执行完毕的有system($command.' > path/logs') 重定向输出到logs中execpopen不需要等待外部程序执行 使用以下linux环境中$cmd ='nohup '.$cmd.' >'.$buildLogs.' 2>&1 &';system($cmd);windows环境中:$runCommand ='e:\php\php.exe '.__FILE__.' cmd '.$cmd;$WshShell = new COM(&quo 阅读全文