Linux 定时任务 crontab
2017-05-20 17:48
148 查看
demo1
crontab -e
# 一分钟执行一次
*/1 * * * * /home/hadoop/hivestudy/test.sh
ll test.dat
观察文件是否在变大
crontab -l 查看定时任务
每五分钟执行 */5 * * * *
每小时执行 0 * * * *
每天执行 0 0 * * *
每周执行 0 0 * * 0
每月执行 0 0 1 * *
每年执行 0 0 1 1 *
http://www.cnblogs.com/beyang/p/5993180.html http://www.jb51.net/LINUXjishu/19905.html
crontab -e
# 一分钟执行一次
*/1 * * * * /home/hadoop/hivestudy/test.sh
#!/bin/bash # tset.sh echo `date` >> /home/hadoop/hivestudy/test.dat
ll test.dat
观察文件是否在变大
crontab -l 查看定时任务
每五分钟执行 */5 * * * *
每小时执行 0 * * * *
每天执行 0 0 * * *
每周执行 0 0 * * 0
每月执行 0 0 1 * *
每年执行 0 0 1 1 *
http://www.cnblogs.com/beyang/p/5993180.html http://www.jb51.net/LINUXjishu/19905.html
相关文章推荐
- linux 定时任务 crontab 详细解释
- crontab命令简介 linux定时设置 Cron实现自动任务
- linux 定时任务--crontab的用法
- Linux的cron和crontab定时任务
- Linux下的定时任务crontab设置
- linux 定时任务 crontab 详细解释
- Linux中crontab-定时任务命令
- Linux下实现秒级定时任务的两种方案(crontab 每秒运行)
- Linux crontab定时执行任务 命令格式与详细例子
- Linux crontab定时执行任务
- Linux定时执行任务命令概述:at和crontab
- crontab的用法---linux定时任务
- crontab的用法---linux定时任务
- Linux下使用crontab来执行定时任务计划
- linux中定时执行任务crond及crontab命令的使用
- LINUX定时任务Crontab详解
- linux下的定时任务,Crontab用法
- Linux中crontab-定时任务命令
- Linux crontab定时执行任务 命令格式与详细例子
- linux 定时任务 crontab 详细解释