linux学习 定时任务(五)
crond 任务调度,定时任务设置
crontab 【选项】
1.-e 编辑
2.-l 查询
3.-r 删除当前用户的所有crontab任务
4. services crond restart 重启任务调度
eg:
1. */1 * * * * ls -l /etc/ > /tmp/to.txt 解释:每分钟写入到to.txt中
cron表达式
https://www.cnblogs.com/javahr/p/8318728.html
crond 任务调度,定时任务设置
crontab 【选项】
1.-e 编辑
2.-l 查询
3.-r 删除当前用户的所有crontab任务
4. services crond restart 重启任务调度
eg:
1. */1 * * * * ls -l /etc/ > /tmp/to.txt 解释:每分钟写入到to.txt中
cron表达式
https://www.cnblogs.com/javahr/p/8318728.html