标签:中控 服务 rest log div 误报 tar tab art
function restart_between_sec () {
local time_begin=$1
local time_end=$2
curr_sec=$(date +%S)
curr_sec=$((10#$curr_sec))
if [[ $curr_sec -lt $time_begin ]]; then
sleep $(($time_begin - $curr_sec))
fi
if [[ $curr_sec -gt $time_end ]]; then
sleep $(($time_begin + 60 - $curr_sec ))
fi
}
restart_between_sec 5 55
标签:中控 服务 rest log div 误报 tar tab art
原文地址:http://www.cnblogs.com/westfly/p/6871978.html