use*_*601 5 php centos shellexecute
我在CentOS上使用apache中的php.我需要为用户提供服务,他们可以通过点击删除大文件.试图使用shell_exec.但它不在后台运行.它运行并使用户等待.
我的命令:
$ D_command ="rm -rf videos /'$ Mdelete'";
了shell_exec($ D_command);
谢谢!
命令末尾的 ass & 。
$D_command="nohup rm -rf videos/'$Mdelete' > /log/deletedfile.log 2>&1 &";
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2444 次 |
最近记录: |