We have some shell scripts in whihc we submit 10 different shell scripts or C executables in background mode. Whether they fail or not, the mail script always returns success. We are not able to find out when one of the job fails unless we go and look at the logs for that individual.
EX:
main.sh
contains..
prog1.sh&
cexe &
prog2.sh&
prog3.sh&
.
.
.
Is there any better way we can handle in such a way that, after any of those submitted (background mode) jobs fail, it should return the status back to main program and let the main program to fail.
Thanks for your help.,
EX:
main.sh
contains..
prog1.sh&
cexe &
prog2.sh&
prog3.sh&
.
.
.
Is there any better way we can handle in such a way that, after any of those submitted (background mode) jobs fail, it should return the status back to main program and let the main program to fail.
Thanks for your help.,