Run python commands in parallel in Linux shell scripting

前端 未结 2 896
-上瘾入骨i
-上瘾入骨i 2021-01-23 00:21

I have a script which gets input from the user through command line arguments. It processes the arguments and starts running python commands. For Example:

./run.         


        
2条回答
  •  轮回少年
    2021-01-23 01:02

    Your task is not where GNU Parallel excels, but it can be done:

    parallel ::: "python abc.py p1 p4" "python xyz.py p2 p3"
    

提交回复
热议问题