I'm running my Raspberry Pi off an SSH server, and want to be able to access it out of home. Sure, all I need is an IP. But with my terrible internet, it's constantly dropping out. My IP is constantly changing.To counteract this, I setup a script to test if my IP is the same as it was 30 minutes ago, every 30 minutes. I also have a script set to kill this, so it doesn't go on forever or until reboot.How can I make my process run itself in the background, without user interaction via. regex like nohup? Can nohup be self-automated? I want this functionality so I don't need an extra computer open while away. (Again, I'm accessing my Pi from SSH)
Automatic Background Processes
shell;ssh;raspberry pi;background process;nohup
use the following to run command in background, it detaches from terminalnohup command &or if running command from termial, to put in background do:commandthen ctrl+z on keyboard to suspend current process, then type: bgto push suspended process to background. type:jobsto list current jobs, including your background process. type:fg %nwhere n in job number from jobs command. nohup command & can easily be scripted.