par*_*ars 1 python linux shell console command-line
我想开始一段python脚本一千次!而不是尝试逐个启动它们如何从linux命令行执行此操作?
现在,我这样做:
nohup python test.py &
nohup python test.py &
nohup python test.py &
nohup python test.py &
nohup python test.py &
...
Run Code Online (Sandbox Code Playgroud)
提前致谢.
作为一个单行班,在Bash:
for i in {1..1000}; do nohup python test.py & done
Run Code Online (Sandbox Code Playgroud)