I’ve setup an Amazon EC2 server. I have a Python script that is supposed to download large amounts of data from the web onto the server. I can run the script from the terminal through ssh, however very often I loose the ssh connection. When I loose the connection, the script stops.
Is there a method where I tell the script to run from terminal and when I disconnect, the script is still running on the server?
You have a few options.
cronto be run regularly.nohup.screen.screen -rD. You should see your stuff just as you left it./etc/rc.d/to be invoked on book and always be running.