开发者

bash script starting multiple process problem

开发者 https://www.devze.com 2023-03-18 08:54 出处:网络
I am trying to write a script that process a sequence job like: compile project A start program A compile proje开发者_运维知识库ct B

I am trying to write a script that process a sequence job like:

compile project A

start program A

compile proje开发者_运维知识库ct B

then start program B

it works fine ,but the problem is when I run the script it compile A works fine then start program A is fine too ,then stopped, when I close program A then program B starts .. how to run them in the same time?


If you put an '&' at the end of the line where you start program A, that should do the trick.


From your question I'm not totally sure which activities you want to run concurrently, but you can put programs in the background using the & operator:

program_a &
0

精彩评论

暂无评论...
验证码 换一张
取 消