九溪

溪水润知林,滴露启慧心

用户工具

站点工具


wiki:linux:crontab

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
wiki:linux:crontab [2019/09/27 11:17] colinwiki:linux:crontab [2023/01/03 15:25] (当前版本) – 外部编辑 127.0.0.1
行 1: 行 1:
 ====== Linux Crontab 定时任务 ====== ====== Linux Crontab 定时任务 ======
 +
 +修改corn脚本编辑器为vim
 +  export EDITOR=vim 
 +
 +创建定时任务
 +  crontab -e
 +
 +编辑任务,如在文件中加入以下命令(每天15:13分自动执行hello.sh脚本)
 +  13 15 * * * sh /opt/hello.sh
 +
 +工具
 +  - [[https://crontab-generator.org/|Crontab 脚本自动生成器]]
  
 参考: 参考:
-  - https://www.runoob.com/w3cnote/linux-crontab-tasks.html +  - [[https://www.runoob.com/w3cnote/linux-crontab-tasks.html|Linux Crontab 定时任务]] 
-  - https://blog.csdn.net/ithomer/article/details/6817019+  - [[https://blog.csdn.net/ithomer/article/details/6817019|linux定时运行命令脚本——crontab]]
   - [[http://sunyongfeng.com/201704/linux/execute_scheduled_commands.html|Linux定时执行备份任务(备份dokuwiki到另一个服务器)]]   - [[http://sunyongfeng.com/201704/linux/execute_scheduled_commands.html|Linux定时执行备份任务(备份dokuwiki到另一个服务器)]]
-  - [[https://crontab-generator.org/|Crontab 脚本自动生成器]]+  - [[http://luosiyong.lofter.com/post/1cc7f64b_6cc5cfc|crontab时区以及linux时区设置]] 
wiki/linux/crontab.1569554261.txt.gz · 最后更改: 2023/01/03 15:24 (外部编辑)