Sponsored Content
Full Discussion: Looking for Your Help
Top Forums Shell Programming and Scripting Looking for Your Help Post 302578048 by Corona688 on Wednesday 30th of November 2011 03:14:50 PM
Old 11-30-2011
Cramming it all on line line like that has, again, made it completely illegible. Unless you're trying to save your enter key for later, you're not doing yourself a favor.

An outline:
Code:
TRIES=0
until ./iperf ...
do
        if [ "$TRIES" -ge 5 ]
        then
                echo "Too many tries"
                break
        fi

        echo "retrying"
        TRIES=`expr $TRIES + 1`
done

 
All times are GMT -4. The time now is 11:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy