Skip to content

Scheduled Run

terrelsa13 edited this page May 31, 2024 · 21 revisions

Linux

  1. Open a terminal window using the following keyboard shortcut: ctrl+alt+t
  2. In the terminal window type the following command:
crontab -e
  1. In the crontab file, type one of the following commands:

    Example #1

    To run /opt/MUMC/mumc.py everyday at 03:21hrs (aka 3:21am)

    21 3 * * * python3 /opt/MUMC/mumc.py
    

    Example #2

    To run /opt/MUMC/mumc.py every Monday at 01:23hrs (aka 1:23am) and save the output to log file /var/log/mumc.log

    23 1 * * 1 python3 /opt/mumc/mumc.py > /var/log/mumc.log 2>&1
    

The following links are a good starting point to learn the crontab syntax:

Learn MUMC terminology

Windows

  • There are many pages online, like this one, showing how to use the Windows Task Scheduler to run a Python script.

Learn MUMC terminology

Docker

  • tbd

Learn MUMC terminology

Clone this wiki locally