I'm trying to figure out how I can run a script "myScript.sh" in such a way that if my remote network connection gets disconnected, the script doesn't stop functioning.
Right now I log in, run "./myScript.sh" and watch my output get pumped to a log file for about 10 hours. Only problem is that if I (or my ISP) closes my network connection ever, I have to start the whole thing all over again.
I have heard something about creating a .pid file and somehow running the script in a different session, but how do I go about doing that?