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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -