Download linux background files [closed]

0

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

    
asked by anonymous 05.10.2018 / 20:27

1 answer

1

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

Type:

tmux

tmux will open, within it run the program in python, then use the CTRL + b d combination to exit tmux leaving the script running. To return to the script screen then just type:

tmux attach

See the tmux manual for more information.

    
05.10.2018 / 21:22