2024-10-03 11:20:20 发布
网友
我有5个python程序,我想同时运行它们
假设我有这些程序
python1.py python2.py python3.py python4.py python5.py
shell脚本如何将它们一起运行?如果我像这样发出5个命令
all.sh python python1.py python python2.py python python3.py python python4.py python python5.py
他们会一起工作吗
有没有更好的选择
您可以这样做:
python python1.py & python python2.py & python python3.py & python python4.py & python python5.py & wait # this will wait for all of them to finish
您可以这样做:
相关问题 更多 >
编程相关推荐