Search code examples
pythonubuntuprocesssshbackground-process

Run python process over SSH with ability to monitor process even after closing SSH connection and reconnecting


I am running a python process (through Django's manage.py) that will take about 6 days to complete. I would start it through an SSH tunnel, but that would require me to keep my Terminal window running and not let my computer fall asleep so the connection stays intact.

While the process is running, it reports the percentage on a single line (by replacing the line over and over again).

How can I start the process and be able to disconnect from SSH, but still be able to check on its progress when I reconnect?


Solution

  • use GNU Screen, your life will be so much more beautiful when you could load/reload your working session of terminals anytime you want --- they never die, and yet they ain't no zombies.