Run three shell script simultaneously

后端 未结 4 946
暖寄归人
暖寄归人 2020-12-28 16:29

I have three shell script which I am running as below-

sh -x script1.sh

sh -x script2.sh

sh -x script3.sh

So each script is executed sequ

4条回答
  •  情书的邮戳
    2020-12-28 17:09

    The & allows a process to run in the background.

    sh -x script1.sh &
    sh -x script2.sh &
    sh -x script3.sh &
    

提交回复
热议问题