美文网首页
Linux scheduling

Linux scheduling

作者: Drafei | 来源:发表于2018-06-02 19:07 被阅读0次

.sh  脚本

#!/bin/bash

cd /

ls -l > /home/../result.txt

任务调度指令:crontab

crontab -l  #查看调度信息

crontab -e #编辑调度信息

具体使用:

分钟  小时 日期  月份 星期(0-6) 执行命令

42 21  ***  home/../out.sh    #设置时间执行out.sh指令。

相关文章

网友评论

      本文标题:Linux scheduling

      本文链接:https://www.haomeiwen.com/subject/iqorsftx.html