#!/bin/bash set -e set -u interval=2 step=28 resetDate=`date +‘%Y-%m-%d %H:%M:00‘` date -s "${resetDate}" while((0<1)) do sleep ${interval} date -s "`date` +${step} sec" done
本文出自 “zl1030的记录” 博客,请务必保留此出处http://zl1030.blog.51cto.com/274507/1956097
原文地址:http://zl1030.blog.51cto.com/274507/1956097