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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -