Everything you need to know about CRON…
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:
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.
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
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. 🙂
Xem thêm bài viết khác: https://ftlinuxcourse.com/lap-trinh-linux
Xem thêm Bài Viết:
- Trải nghiệm mới hay ho với hướng dẫn cài Mac Os trên vmware
- Bật mí cách cài đặt ssl miễn phí lên Let’s Encrypt
- Tuyệt chiêu tạo usb boot kali linux đơn giản dành cho bạn
- Hướng dẫn chi tiết từ A – Z các bước cài đặt Python trên Windows 10
- Bật mí quy trình cài đặt Kali Linux trên Vmware đúng chuẩn và chi tiết
Leave a Reply