Using either screen or nohup command is not ideal for running a script continuously as the system will not start the script again if it fails although many Stack Overflow answers recommend using one of those. Instead, you need to daemonize your script. AMI Amazon Linux AMI 2017.09.1.20171120 x86_64 HVM Installation sudo pip install supervisor… Continue reading Run Scripts Continuously on AWS EC2 Instance Using Supervisord