Download files in the background linux

Asked

Viewed 57 times

0

I have a python script that downloads about 2000 images, and as my pc is not there these things I am using a VPS. But when I leave the script running it downloads a certain amount of images until the ssh connection drops. How do I leave the images downloading even after the ssh session is over? I tried nohup python meusccript.py & but do not download the images.

1 answer

1


This question is not python, it should probably be in superuser.com... The answer is: Use the tmux, it allows you to leave one or more terminals running and end the ssh connection. There you can leave any program running on these terminals.

Typo:

tmux

tmux will open, inside it runs the program in python, then use the combination CTRL+b d to quit tmux by leaving the script running. To return to the script screen later just type:

tmux attach

See the tmux manual for more information.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.