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++: Boost interprocess memory mapped file error -

python - IO.UnsupportedOperation: Not Writable -

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