1 2 3 4 5 6 7 8 9 10 |
#!/bin/bash MAX_WAIT=80 DELAY=10 TOTAL_WAIT=0 until [ $TOTAL_WAIT -gt $MAX_WAIT ] do echo $TOTAL_WAIT sleep $DELAY let TOTAL_WAIT=$TOTAL_WAIT+$DELAY; done |
1 2 3 4 5 6 7 8 9 10 |
#!/bin/bash MAX_WAIT=80 DELAY=10 TOTAL_WAIT=0 until [ $TOTAL_WAIT -gt $MAX_WAIT ] do echo $TOTAL_WAIT sleep $DELAY let TOTAL_WAIT=$TOTAL_WAIT+$DELAY; done |