restarting a matlab app automatically if it fails
restarting a matlab app automatically if it fails
(OP)
My matlab app processes a bunch of files and if it hits a bad file it fails and stops. I would like it to restart itself after it comments out the offending file. so I would like to know how I can get notified that the app has failed (stopped).
thanks,
sb
thanks,
sb





RE: restarting a matlab app automatically if it fails
Is the bad file bad because it is corrupted or because it doesnt meet certian criteria in the process scheme?
You could run an initial check/process that would decide whether a file was bad or not. With that info you can then jump back to before the process loop and remove it from the file list that is being passed to the process loop and start all over again...
How to get around it really depends on why it is being tagged as bad.
But my feeling is that the app stops because you are arriving at an end before something that would edit the file list and begin the process again.
Hope this helps some... else supply more info :)
BSK
RE: restarting a matlab app automatically if it fails
BTW when you do an eval('fcn') you can also do eval('fcn','backupfcn') where backupfcn runs if fcn errors out.
Had some troubles changing directories, so will do the try catch instead and see.
thanks for taking the time to respond,
sb