Sometimes, you wanna try some risky things such as playing with Network on your Raspberry through SSH. If you lose the connection, and you are not next to the Raspberry, you lose it for good. Sad but true :(
A timer to restart Raspberry just in case shit happens while playing dumb through ssh:
This needs to be started in a screen. If not, you lose the SSH link, and the timer script is stopped (meaning no restart of Raspberry...).
Here are some screen tips.
- Start a screen : Then start your script within the screen : Once timer is in place, you can detach the screen by doing CTRL + a, then d
- To resume your screen session use the following command :
- In case you have multiple screen sessions running on you machine you will need to append the screen session ID after the
rswitch. To find the session ID list the current running screen sessions with: