#!/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
时间: 2024-11-08 22:37:23
#!/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