- 链接地址:https://blog.csdn.net/Fresh_man888/article/details/111085413
- 链接标题:linux中shell脚本定时任务 crontab的使用方法_shell脚本crontab怎么使用-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:7663
文章浏览阅读401次。linux shell脚本 定时任务 每三秒一次1.shell脚本1.1 创建shell脚本1.vim seconds.sh在脚本中输入以下内容#!/bin/bashfor((i=1;i<=20;i++));doecho "num "${i}/home/somedir/scripts.sh 2>/dev/null &sleep 3done2. 给当前脚本增加读写权限chmod u+x ./seconds.sh2.Linux定时器操作1. 编辑._shell脚本crontab怎么使用
版权声明:本文发布于特牛生活网 内容均来源于互联网 如有侵权联系删除