Linux Crash Course - Scheduling Tasks with Cron

preview_player
Показать описание
As Linux server administrators, we need to be able to schedule tasks to run at some point in the future. Perhaps as a one-off command, or a job that's expected to repeat on some sort of schedule. And that's exactly what Cron helps us to do - by setting up a Crontab, we can schedule tasks to run at some point in the future.

# LearnLinuxTV Sites
🐧 Main site:

🐧 LearnLinuxTV Community:

# About Me
🐦 Follow me on Twitter!

*📘 FAQ*

#Linux #Cron #Crontab
Рекомендации по теме
Комментарии
Автор

Cron is a great tool, has been since the 70's when it came out on Unix V6. I'm glad it's still around.

larrywilliams
Автор

Thank you Jay! Your videos are always so intuitive. I don't know if you get told this enough, but you have a real gift for teaching. You are a huge help to everyone entering the linux community, and its people like you who help to grow this open source ecosystem by making it more accessible. I have learned a lot from your videos and it happened a lot quicker than I thought it would.

MichaelDude
Автор

This video explained so much about scripts running at various times.

zzzz
Автор

A quick mention on how to set a cronjob every X amount of hours (i.e 0 */4 * * *) would have been great, as beginners might think that this is not possible.

Hobbitstomper
Автор

I can't thank you enough for this channel.

mysteriousjungalist
Автор

The information at around 6:00 is not correct. If dow and dom are specified and don't start with a *, the fields are OR-combined, so the command will run at the 15th of August and at every Friday in August, not only on those 15th of August which happen to fall on a Friday.

man 5 crontab says: <quote> Note: The day of a command's execution can be specified by two fields — day of month, and day of week. If both fields are restricted (i.e., don't start with *), the command will be run
when either field matches the current time. For example,
``30 4 1, 15 * 5'' would cause a command to be run at 4:30 am on the 1st and 15th of each month,
plus every Friday. One can, however, achieve the desired result by adding a test to the com‐
mand (see the last example in EXAMPLE CRON FILE below).
</quote>
And D.C.s comment about 6:30 is correct, too, but I guess that was a mistake of attention, not information.

unbekannter_Nutzer
Автор

6:30 "* 11 * * *" = every minute of the 11th hour, not "at 11am." That would be "0 11 * * *"

caveman
Автор

Very well explained even for the person who never used the cron.. thanks..

AmishaSharma_
Автор

Great job! I believe that editing /etc/crontab is best practice on servers. That way you can see all jobs in one place.

ChuckBoecking
Автор

Cron is possibly the best feature in the Linux ecosystem.

ThomasFaller
Автор

Thank you very much. I just need to schedule a single task: for oncers like this, graphic front ends are useful, but I can't find one. This video makes me feel comfortable about going back to where I started, editing text files. This video is very clear and confidence inspiring.

michaelwright
Автор

I do use cron under user account. There are number of tasks which I need to do only in my home directory.
And thanks a lot for @reboot and @hourly tips. I didn't know that.

umka
Автор

Awesome video about Cron. Jay - You're awesome. Terrific. I love this channel almost as much, as I love Interstellar (2014).

michalroesler
Автор

This was a great video! Nicely done and very informative!

DonnaBussure
Автор

Awesome video! I have so many ideas for this. Thanks for the great tutorial.

chillnacho
Автор

I like the editing style and thanks Jay.

guilherme
Автор

actually, your whole course is really helping I'm not following all of it but when I search for any topic I feel safe when I find your vids :"D

ranaellese
Автор

Your all videos are Awesome. Thank you very much Sir. 😇

ultron
Автор

I don't know it's you or YouTube but I'm really thankful for the Arabic translation

ranaellese
Автор

Thanks again for another great video. I have learned so much watching your channel.

dustinhess