![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
ThatJin
这个作者很懒,什么都没留下…
展开
-
shell counter
#!/bin/sh file=.number epochFile=.epoch logFile=work.log num=0 if [ -f $file ];then num=`cat $file` num=`expr $num + 1` echo "number : $num" echo -n $num > $file else echo -n "0" > $file fi epoch3MinAgo=`da原创 2022-01-04 14:51:58 · 215 阅读 · 0 评论 -
Linux
crond是linux下用来周期性的执行某种任务或等待处理某些事件的一个守护进程 keepalived不能保证脚本运行,使用crond系统任务调度可以定时执行脚本原创 2021-05-23 21:20:25 · 214 阅读 · 0 评论