littleIdiot
MIS
Hi,
I have a script that, no matter how many catches and fail-safe's I put itno it, will sometimes hang due to the data I am dealing with. I have to Ctrl+C out of it when it hangs.
I have tried many ways of catching this before it happens but it is not possible in some instances.
I am looking for a way that will allow me to set this script off at night, let it run through the night, and if it fails or hangs, will be re-set off with the next input file.
Something like:
This would need a list of input files to be worked on of course.
Any ideas, pointers in the right direction, or out and out solutions appreciated!
Cheers,
lil'
I have a script that, no matter how many catches and fail-safe's I put itno it, will sometimes hang due to the data I am dealing with. I have to Ctrl+C out of it when it hangs.
I have tried many ways of catching this before it happens but it is not possible in some instances.
I am looking for a way that will allow me to set this script off at night, let it run through the night, and if it fails or hangs, will be re-set off with the next input file.
Something like:
Code:
sh my_script input_file.1
if [script is still running]
then
sleep 600
else
sh my_script input_file.2
fi
Any ideas, pointers in the right direction, or out and out solutions appreciated!
Cheers,
lil'