Menu Close

Scheduling a Python Script to Run Automatically

A quick note:

To schedule a python script to execute automatically, ssh to your server and enter the following command in the terminal window:

crontab -e

Add the command to run the script at the bottom of the file.   The examples shown below will run the scripts at 15 past the hour every hour.

15 */1 * * * python3 /home/paul/python/weather_scrape.py
15 */1 * * * python3 /home/paul/python/stocks/stocks.py

Leave a Reply

Your email address will not be published. Required fields are marked *