We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am currently writing a processing program that needs to be hosted for long periods of time (weeks to months). I have written the program to save info to a csv file in case it crashes so it can continue from where it left off. One issue i've found is that it regularly crashes with a send error to apple notice after being on for a long period of time, this period seems to be about the same length of time every time so I know it's not my programs fault. My friend said this is because of watchdog timer. My question is, would there be a shell script I can write to relaunch the program upon crash ( note i'm a mac osx user)? Thanks for help!
Answers
I think you can launch it using processing-java in your script. I mean,
processing-java --sketch=YourFolderSketch --run
Be sure processing-java folder is on your PATH.
on linux if you export an application then the resultant folder contains a shell script that launches the sketch. maybe that'll help.
maybe a better idea would be to deliberately kill it and restart it every hour or so, don't let it crash. this way you're in control...