小编Eli*_*ady的帖子

如何使用单个命令在后台运行多个程序?

如何使用单个命令在后台运行多个程序?

我已经尝试了下面的命令,但它们不起作用。

nohup ./script1.sh & && nohup ./script2.sh &
-bash: syntax error near unexpected token '&&'

nohup ./script1.sh & ; nohup ./script2.sh &
-bash: syntax error near unexpected token ';'
Run Code Online (Sandbox Code Playgroud)

bash shell-script

35
推荐指数
2
解决办法
3万
查看次数

标签 统计

bash ×1

shell-script ×1