DEV Community

Discussion on: How to keep a process running even after closing SSH connection?

Collapse
 
setzke profile image
setzke • Edited

I do:

screen -d -m $script
multitail $log1 -I $log2 -I $log3 -I $log4

My script writes everything to those logs as it works, and I get what essentially would be the output of the script as it's working. That way any CTRL+C or disconnect just quits the viewing, and not my script.

Collapse
 
bobbyiliev profile image
Bobby Iliev

That's super cool! Thanks for sharing!