Friends i am trying to use both AND and OR in one command and my OR doesnt seem to be working. Am i missing anything here
if [ $srcCnt -ge 5000 ] && [ $ldCnt -le 200 ] || [ $sleepVar > 120 ]
then
Do something
else
SLEEP
fi
It looks like it is not accounting for my OR command. It works fine when i check just AND or Just OR.
Thanks ahead
Logic4fun
if [ $srcCnt -ge 5000 ] && [ $ldCnt -le 200 ] || [ $sleepVar > 120 ]
then
Do something
else
SLEEP
fi
It looks like it is not accounting for my OR command. It works fine when i check just AND or Just OR.
Thanks ahead
Logic4fun