The Fei's Tech Notes
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment