|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/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
|