命令行修正

This commit is contained in:
ASUS 2025-10-22 09:05:50 +08:00
parent 6507a567d3
commit 5542963183
1 changed files with 4 additions and 4 deletions

View File

@ -8,10 +8,10 @@
// 注:日志路径可自定义,确保目录有写入权限(如 ./logs/ 需提前创建)
$commands = [
// Linux/macOS用 setsid 脱离终端,输出重定向到单独日志
'nohup php webman applysmstemp > ./logs/applysmstemp.log 2>&1 & setsid $!',
'nohup php webman birthdaygiftsms > ./logs/birthdaygiftsms.log 2>&1 & setsid $!',
'nohup php webman rabborderprint > ./logs/rabborderprint.log 2>&1 & setsid $!',
'nohup php webman rabbproductupdate > ./logs/rabbproductupdate.log 2>&1 & setsid $!',
'nohup php webman applysmstemp & > ./logs/applysmstemp.log 2>&1 & setsid $!',
'nohup php webman birthdaygiftsms & > ./logs/birthdaygiftsms.log 2>&1 & setsid $!',
'nohup php webman rabborderprint & > ./logs/rabborderprint.log 2>&1 & setsid $!',
'nohup php webman rabbproductupdate & > ./logs/rabbproductupdate.log 2>&1 & setsid $!',
// 若为 Windows 系统替换为以下命令start /b 后台运行,输出重定向)
// 'start /b nohup php webman applysmstemp > ./logs/applysmstemp.log 2>&1',