Set Up Scheduled Python Scripts on EC2 Tutorial

preview_player
Показать описание
In this video I schedule a bitcoin pricer scraper on EC2

Commands Used:

sudo su
sudo yum install python3-pip

CTRL+S (Save File)
CTRL+X (Quit Nano)

which python3 (get python path)
crontab -e
sudo yum install cronie

Write the following keys to save and quit crontab
ESC :wq ENTER

crontab -l
sudo systemctl status crond

sudo systemctl
start crond

0:00 Introduction
1:00 EC2 Instance Creation
2:15 Set up EC2 dependencies
5:30 Setup crontab scheduling
Рекомендации по теме
Комментарии
Автор

Hey man. Thanks for the video! You explained everything in the simplest terms and I was able to get my script up and running.

shadyacres
Автор

Thanks for the tutorial! One question:
This method leaves the instance alive forever therefore will cause more costs, If i want to run a script daily, what's the best practice for scheduling the EC2 instance to wake up, install dependencies and run a specific script?

royteicher
Автор

This was really helpful. Thank you so much!!

penninahgathu
Автор

For me I needed to open editor with:

EDITOR=nano crontab -e

DuPraca
Автор

How to scedule in azure devops please explain thank you

TheRavi
Автор

Thanks for the video, but won't that just mae the ec2 instance running 24/7, and iam paying for the period script is not running in ?

itzcallmepro