5

Errors in if conditions with to many OR conditions

view full story
linux-howto

http://www.unix.com – Hi ALL I have a script where in i need to check for several values in if conditons but when i execute the script it throws error such as "TOO MANY ARGUMENTS" Code: if [ $var1 -gt 1500 -o $var2 -gt 1000 -o $var3 -gt 1000 -o $var4 -gt 1000 -o $var5 -gt 1000 ] then msg="BM VAR Issue :: bmaRequestVAR=$bmaRequestVAR , nltBMVAR=$nltBMVAR , bmaResponseVAR=$bmaResponseVAR , bmResponseVAR=$bmResponseVAR , bmRequestVAR=$bmRequestVAR " SendSms "$msg" wget -q --no-proxy "http://10.10.1.8/cgi-bin/provider?host_name=LION_MACHINE&svc_desc=MESSAGE_VAR_BM_LION& (HowTos)