.sh 脚本
#!/bin/bash
cd /
ls -l > /home/../result.txt
任务调度指令:crontab
crontab -l #查看调度信息
crontab -e #编辑调度信息
具体使用:
分钟 小时 日期 月份 星期(0-6) 执行命令
42 21 *** home/../out.sh #设置时间执行out.sh指令。
.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
网友评论