开发者

bash script starting multiple process problem

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜