我正在使用一個shell腳本運行10個php CLI進程(並行)。但是,我正試圖找出如何在創建後將進程發送到背景。創建在後臺運行的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
對不起,我有很難與此有關。
'CMD&'運行'cmd'作爲後臺作業。 – 2013-02-14 21:12:55