Keep a process running in linux with NOHUP
These days I have been doing some work on my Raspberry PI 3B+ with a Raspberry PI OS image, and have come across some situations in which I would like to continue having a command run even when I close the terminal window in which I started it. To do so I just need to use the NOHUP command at the start of the command line to do just that. However maybe there are just a few more things to write about on top of that when it comes to starting and killing processes in a Linux operating system environment.
When starting a command as an independent process there is not just using the nohup command and then that is it. There is also the question of what to do with any output that might be produced while the process is running? So often There might be a need to redirect that output of the process to a file, or pipe it to another command maybe. Also once a process is started there is also how to go about keeping and eye on it, and if need be stop it. So it looks like I will be touching base on at least a few other related topics in the process of covering how to go about keeping a command running in the background in Linux.