特牛生活网

linux中shell脚本定时任务 crontab的使用方法_shell脚本crontab怎么使用-CSDN博客

网友收藏
文章浏览阅读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怎么使用