01-30-2021

https://youtu.be/cEL7MmeOSic

 

 

CronJob

 

The software utility cron also known as cron job is a time-based job scheduler in Unix-like computer operating systems. Users that set up and maintain software environments use cron to schedule jobs to run periodically at fixed times, dates, or intervals

Directory:

Config file:

Port #:

Package:

Services: crond

Protocol:

Command: crontab -e;

URL:

 

* * * * *

 

*

*

*

*

*

Command

Minutes

Hours

Day of the month

Month

Day of the week

Script and command

0-59

0-23

1-31

1-12

0-6

What ever you want here

 

 

 

 

 

 

[root@client01 ~]# crontab –e

 

01 * * * * touch file{1..20}

11 * * * * /root/script.sh >> output

 

Note: Script runs in the back ground

You can put multiple cron job in the crontab to execute