linux - Wait until process is killed to launch another process -
this question has answer here:
- wait “any process” finish 13 answers
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
Post a Comment