Hi, everyone.
In our previous lecture, we have learned how we could schedule jobs, tasks to current job or our job,
and we all know that our job is used for ad hoc task for one time use.
And if you wanted to schedule jobs, especially repetitive job, you would use Kraja a Crown tab.
Now we want to cover some additional things about current job by default.
There are four different type of kraja that is set for you that is like out of the box, that operating
system, the Linux operating system offers you.
And those jobs are hourly job, daily jobs, weekly and monthly.
So anything.
Any task that you want to run hourly basis or weekly or monthly basis, you could do it two ways.
One, you could do through the crosstab minus E and specified or were there or you could simply have
the script added inside of the hourly daily, weekly monthly directories.
Those directories are in ETSI, Quraan, DOT hourly, daily, weekly or monthly.
So you go into each of these directories and you put in your.
Script that will run every hour or depending on how often do you want to run and then you don't have
to do anything about the crosstab or anything, then the Kronborg Daily or hourly, depending which
one you picked, will do the job.
Now, the timing of each are set in ETSI and ACRON tab.
When you do cat, you will see that.
And a crosstab has the timing of when the daily, weekly and monthly job will run except the hourly
one.
The hourly one is defined the what time Iran's defined in etsi crawdaddy zero hourly.
That's the file that defines when the hourly runs.
So let me get into my Linux machine and we'll see how these jobs are set up in each directory.
So I have my terminal open, I am logged in as a route.
Now first thing I want you to do is go to CCDs, slash ETSI in here.
You will do ls minus L Chron dot an asterisk and you run.
When you enter, you will see it will grab.
It will get everything that starts with Quraan.
So it's getting Quraan.
Dinni Chron hourly sorry.
Right here.
The directors we have is Chron monthly, chron hourly.
But the right way to show you is I will do is Ellesmere's L.
Grep for Quraan, so this way you will see the directories that I wanted to go work for.
So you see right here, the Krondl Daily Kronborg hourly, monthly.
And weekly, and this is the crosstab to actually have you go and specify, Manoly, if you don't want
to go into each daily or weekly.
So let's say if I go into Quraan dot daily.
And Richard, I agree, I'm in I'm in at second daily to minus, you'll see it has three different Chron
or the task or the scripts that run daily.
And these are the actual scripts that were run daily.
If you have a script that you want to run daily once a day, then you all you have to do is put your
script Moosewood in this directory, which is Chron daughterly.
If you want to run your script hourly, then you go into one step back and you go into Chron DOT hourly
and then you add that into this directory, your script, move their script into this directory.
Similarly, if you wanted to add or run your script every month, then you could do Chron DOT Monthly,
go into this directory and do a less mysel.
You see, there is nothing right now in that directories.
So all you have to do is move your script to this directly and by default it will run every month.
Now question is how or when does the monthly runs or when daily runs?
So that is specified in when you do Cat at sea and ACRON tab and hit enter and you will see the timings
that are set right here.
So one five Kronborg Daily, that's the daily time it will run seven twenty five.
It's the weekly period in days, seven seventh day days in minutes.
DeLay, delay, minute and job identifier and command.
So this is a command.
It will run.
So this is the timing that it is telling you.
These are the timing that it will run your daily, weekly or monthly jobs.
Now, what about the hourly?
The hourly is not specified here to view the hourly schedule time you have to Dukat at C granddaddies
zero hourly and you will see zero hourly is scheduled to run at zero one, which is 12 01 at midnight
every night.
It wants anything that is specified in the hourly sorry, not midnight that would be daily.
It is scheduled to run every one minute after the hour, so it will run at twelve one one two one two
or one three one to every one minute every hour if you define your script in the Kronborg hourly.
So anyway, this is what I wanted to cover.
If you wanted to go over the current details and you don't want to specify Kronborg crosstab minus E,
you don't want to write down into this Chron, then you don't have to.
You could simply go into each individual directory and all you have to do is put your script in that
category and let these directories or Lateesha run as they are scheduled to run.