Need to start a script from the point where it failed.

Hi Guys,

I have requirement where if the script fails at a particular point, then the script should run from that particular point itslf..

could anyone help me out from this..

Thanks

you mean you have a set of script which you are calling inside another script..
and if one fails the main script should start from where it failed last time right??

Do you mean restart itself? Use exec $0

yes vidaydar..

from the point it failed..
lets say the script failed while executing a select query.

THen next time it should start from the select query and follow the process..

no era..
when i ran it manually, it should run from the point it failed..

Sounds like "break up into small scripts, keep track of which ones completed, run the rest".