in reply to Re: Execute on conditional check
in thread Execute on conditional check
if condition is satisfied, it keeps printing out 1st loop. How to come out of the loop,if condition is satisfied.flag=0 time=$(date +"%H:%M:%S") echo $time while : do while : do if [ $(date +"%H:%M:%S") = '07:32:00' ] then echo "1st loop" break fi break done while : do if [ $(date +"%H:%M:%S") = '07:32:30' ] then echo "2nd loop" break fi break done done
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Execute on conditional check
by dineed (Scribe) on Jun 20, 2010 at 19:35 UTC | |
|
Re^3: Execute on conditional check
by Corion (Patriarch) on Jun 20, 2010 at 15:15 UTC | |
by Anonymous Monk on Jun 20, 2010 at 15:32 UTC | |
by Corion (Patriarch) on Jun 20, 2010 at 15:35 UTC | |
by hexcoder (Curate) on Jun 20, 2010 at 21:04 UTC |