我希望使用一个 shell 脚本运行 10 个 php CLI 进程(并行)。但是,我试图找出创建后如何将进程发送到后台。
我正在尝试这样的事情。任何帮助将不胜感激。(只是流程,不是真正的 shell 脚本)
for loop 1 to 10
php -q /home/xxx/xxx.php & // I want to send this to background one created. because it runs indefintely depending on the task it needs to do.
end for
对不起,我很难做到这一点。