CRON - task scheduling in linux


Everything you need to know about CRON…

Probably.

Subscribe: www.youtube.com/user/linuxleech?sub_confirmation=1

In this tutorial i cover how to schedule task using the vixie cron implementation of cron and some common pitfalls. Vixie cron is probably one of the most popular cron implementations out there.

command substitution BASH:
www.youtube.com/playlist?list=PLew9cBMjbI-186KqBgb8CVK_-Wp40H7bz

Tail tutorial:
youtu.be/zat6vY48sro

As this is a long tutorial i have added these bookmarks so you can skip ahead to each section. Although i do recommend that you watch the entire video as each section follows on from the previous section.

BOOKMARKS
00:11 Intro
00:38 crontab
03:26 Anatomy of a cronjob
11:10 90 minute interval cronjob
12:53 Last day of the month cronjob
18:30 crontab variables
23:38 cron environment variables run GUI applications
26:11 Where is my crontab file
27:10 Where are the cron logs
28:00 The system crontab
31:35 /etc/cron. directories
32:38 cron.d
33:52 cron.allow cron.deny crontab access control
36:20 A bit about runparts
37:09 Running cronjob as root

We start this tutorial with an introduction to crontab and how to use it. There is a short presentation covering how to create your own cronjobs and what is classified as a valid schedule.

Following this is some examples of how to create more complex cron shedules with the assistance of a little shell scripting.

The next sections cover crontab variables and environment variables.

The last section cover the cron directory structure and special files that cron uses along with some advice on where to put your crontabs if you require root privileges with some explanation and justifications.

If you read this far into the description you are one of a small elite group that dare to delve below the fold drop a comment on this video and end your comment with "#! linuxleech" It would be interesting to see how many people do this and also know why they are doing this i.e they went below the fold and read this. :)

Blog: www.linuxleech.com
Twitter: www.twitter.com/linuxleech
Facebook: www.facebook.com/linuxleech
Google: www.google.com/ linuxleech

0 комментариев

Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.