I am new to Unix , there i am facing one problem with sleep command. that is ..
in while loop i have defined sleep function ..
my condition is like this
while [ 1 -le 0 ] #i knew this is infinite loop
do
sleep 200
echo "hello "
done
.
this condition will never become .. true .. so.. my Question is how long this sleep condition keep on checking every 2 mints.. like .. a day or two days.
or the sleep function keep on executing ?
Not only do I not see an infinite loop anywhere, I see no loop at all. If the condition tested is always false, there won't even be a single iteration.