linux - Wait until process is killed to launch another process -


this question has answer here:

i have no experience writting sh/bash script linux, want check if process running. if process running wait, when process killed execute proccess, (pseudo-code):

while main_process.run = true {     do_nothing; } execute new_process 

how can in small script.sh? thanks!

if shell did start process waiting for, then:

wait <process id> execute_new_process 

Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -