n=0
until [ $n -ge 5 ]
do
command && break
n=$[$n+1]
sleep 15
done
根据下面的表格替换上文中的内容
替换内容 | 功能 |
---|---|
5 | 重试次数 |
command | 想要重试的命令 |
15 | 重试前等待的时间 |
n=0
until [ $n -ge 5 ]
do
command && break
n=$[$n+1]
sleep 15
done
根据下面的表格替换上文中的内容
替换内容 | 功能 |
---|---|
5 | 重试次数 |
command | 想要重试的命令 |
15 | 重试前等待的时间 |