Hi, add_num=`expr $int_num + 1 1>/dev/null 2>&1` if [ "$?" -ne "0" ]
some case exit status is 1552 for expr even though the argument is integer .Initialy i checked if [ $?-ne 0 ],but this shows the above error so, i am planning to use kms=$? if [ $kms -eq 1 -o $kms -eq 2 -o $kms -eq 3 ] instaed of if [ "$kms" -ne "0" ] *is it fine or will it make issues. * The mannual says info expr|more Exit status: 0 if the expression is neither null nor 0, 1 if the expression is null or 0, 2 if the expression is syntactically invalid, 3 if an error occurred. Regards, Salih