What I am trying to achieve here is, via script I'm running 3 different custom application in wait simultaneously, if any application get exit, give alert via notify or print exit code.
System in use: Centos 6.8
background-processbashshell-script
What I am trying to achieve here is, via script I'm running 3 different custom application in wait simultaneously, if any application get exit, give alert via notify or print exit code.
System in use: Centos 6.8
Best Answer
I thought about Bash's
wait -n
, but it doesn't let you know which child process exited. How about a simple Perl script?