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:
- Hướng dẫn sử dụng hệ điều hành linux siêu tốc – bài 25 Xem cấu hình hệ thống (cpu, ram, hdd)
- Linux cat command summary with examples
- Cài nhiều hệ điều hành Windows và Linux trên một máy tính
- Hướng dẫn tạo USB Boot DLC2019 (NTFS / UEFI) Trên windows 10 ( sử dụng USB 32 GB )
- Hướng dẫn gỡ bỏ Ubuntu sạch sẽ nhất bằng lệnh trên Windows theo chuẩn UEFI-GPT