About Using Screen for Time-consuming Scripts on Remote Servers

Using screen utility you can start some time-consuming command on a remote server and then leave it running there while closing the SSH connection.

Install it to remote Ubuntu Linux server with:

$ apt-get install screen

On that server, start a new bash window with:

$ screen

Then start any time-consuming script or command.

While it's running, detach the window with:

Ctrl + a, Ctrl + d

Now you can log out or exit the SSH connection.

After a while, connect to the server and get back to long-running command with:

$ screen -r

To exit the screen window completely type:

$ exit

Alternatively, use Tmux.

Tips and Tricks Dev Ops Developer Experience Bash SSH Screen

Django/Python Consulting

If you have a specific Django challenge or integration you'd like to solve, I'd be happy to help. Book a free 30-minute call to discuss your project, see if we're a good fit, and explore the best approach for your needs. After the call, you'll receive a tailored cost estimate based on what we discuss.