当前位置:网站首页>Crontab's learning essays
Crontab's learning essays
2022-06-27 19:53:00 【qq_ forty-four million eight hundred and one thousand one hundr】
One 、 brief introduction
crontab yes , Instructions for setting up scripts to execute periodically .
Commands are stored in crontab In file
crond Often running in the background , Check every minute if there are scheduled jobs to be performed . This kind of homework is generally called cron jobs. When the operating system is installed , By default, the task scheduling command is started .
Two 、crontab Interpretation of expressions
Command time format :
* * * * command
branch when Japan month Zhou command
The first 1 List minutes 1~59 Per minute * perhaps */1 Express
The first 2 List hours 1~23(0 Express 0 spot )
The first 3 List date 1~31
The first 4 List month 1~12
The first 5 Column ID week 0~6(0 Sunday )
The first 6 Column command to run
3、 ... and 、crontab The practice of directives
(1)cron yes linux Built in services for , But it doesn't get up automatically , You can start it in the following way 、 Shut down this service :
/sbin/service crond start # Start the service
/sbin/service crond stop # Close the service
/sbin/service crond restart # Restart the service
/sbin/service crond reload # service crond reload
(2) View the current user crontab Task list for
crontab -l
The list of scheduled tasks is as follows :
(2) Edit the current user crontab Mission
crontab -e
Input i Enter editing status , take 51-》50
Click on esc
Input shift+“:”– Pay attention to the English status , Input wq Exit the editor 
Look again , You can see that the time has changed
Be careful : The newly created cron Mission , Not immediately , At least 2 It's only in minutes , Of course, you can restart cron Come on, do it right now .
(3) Help order crontab -h
Four 、 Good article
linux Instruction based learning :https://www.docin.com/p-324829386.html
awk:
https://blog.csdn.net/qq_22253901/article/details/118094440
边栏推荐
猜你喜欢

Online text batch inversion by line tool

DCC888 :Register Allocation

binder hwbinder vndbinder

Erreur Keil de Huada Single Chip Computer La solution de Weak

MySQL表的增删改查(基础)

C# 二维码生成、识别,去除白边、任意颜色

Summary of submarine cable detection technology

带你认识图数据库性能和场景测试利器LDBC SNB

External interrupt experiment based on stm32f103zet6 library function

Buzzer experiment based on stm32f103zet6 library function
随机推荐
拥抱云原生:江苏移动订单中心实践
International School of Digital Economics, South China Institute of technology 𞓜 unified Bert for few shot natural language understanding
1029 Median
Solution of adding st-link to Huada MCU Keil
Code and principle of RANSAC
通过 Cargo 管理 Rust 项目
The Fifth Discipline: the art and practice of learning organization
Blink SQL内置函数大全
Golang map 并发读写问题源码分析
Seven phases of CMS implementation
rust 中的结构体
What is ssr/ssg/isr? How do I host them on AWS?
openssl客户端编程:一个不起眼的函数导致的SSL会话失败问题
数智化进入“深水区”,数据治理是关键
刷题笔记-树(Easy)-更新中
Mathematical derivation from perceptron to feedforward neural network
1024 Palindromic Number
Is it safe to buy stocks and open an account on the account opening link of the securities manager? Ask the great God for help
使用MySqlBulkLoader批量插入数据
数仓的字符截取三胞胎:substrb、substr、substring