2019年9月2日

监控文件是否更新

摘要: shell脚本: #! /bin/sh date=$(date +%Y-%m-%d-%H:%M) file_path=/root/airflow/scheduler.logcheck_time=120file_old_stat="`stat ${file_path}|grep Size`"sleep 阅读全文

posted @ 2019-09-02 18:18 锋锋2019 阅读(412) 评论(0) 推荐(0) 编辑

crontab配置

摘要: crontab特殊字符含义: *表示任意时候都,就是"每"的意思.如*****表示每分钟,00 23 * * *表示每日的23点 - 分割符,表示范围.如17-19表示17点到19点. 如00 17-19 * * *表示每天17-19点的整点执行 任务.也可用17,18,19表示 /n n表示数字, 阅读全文

posted @ 2019-09-02 10:36 锋锋2019 阅读(630) 评论(0) 推荐(0) 编辑

导航