Schedule a Bash Script to Run

The Following shows how to schedule a Linux bash script so that it runs at 7:15 PM (19:15) ever daily.

1. To schedule a job in Linux, one will need to use command crontab. For example, in the terminal, one would type:

    sudo crontab -e

    2. In the Vim editor, enter the the hour and minute to run the job as well as the command to run as shown in the example below.

    3. Press Shift + : (colon) and type, w! to save.
    4. Press Shift + : (colon) again, and type q! to exit out.
    5. To activate the new schedule, restart the crond daemon:

    sudo systemctl restart crond