Monday, August 15, 2011

While Loop Multiple Conditions

set -x
dmgrStatus="CHECKING"

while [ "${dmgrStatus}" != "FAILED" ] && [ "${dmgrStatus}" != "SUCCESSFUL" ] && [ "${dmgrStatus}" != "TIMEDOUT" ]
do
echo "$dmgrStatus"
dmgrStatus="SUCCESSFUL"
echo "$dmgrStatus"

done

No comments:

Post a Comment