|
To Stop at error
Hi All,
I am running parallel process as they all run the same JOBS and only thing which changes is the argument which ia passed.
I am doing it as follows
script.sh $1 &
script.sh $2 &
script.sh $3 &..
and so on.
Now each process has same set of JOBS which are to be executed. Now say if any of the job fails it should ideally stop at that point. However its not happening at present.
Say script.sh $2 & process failed for some reason then it should stop at there itself while script.sh $1 & and script.sh $3 &.. should continue.
At present when script.sh $2 & is failing its not stopping and its going to the next JOB of the list.
Kindly suggest what can be done to avoid this
|