First of all, here's my script +1 # /bin/ksh!
+2
+3 echo "\tPlease enter the battery number you wish to search for..."
+4 read ans
+5
+6 if [[ $ans != 0 ]]
+7
+8 then
+9 cat /dso/eis/log/batlog.log.* |grep $ans
+10 fi
+11
+12 echo "\tWould you like to print this? (y/n)"
+13 read ans1
+14
+15 if [ $ans1 = "y" -o $ans1 = "Y" ]
+16
+17 then
+18 lp -dpcl@pr7
+19
+20 else
+21 exit
+22 fi
~
When I run this, it just hangs out there and nothing prints. Am I doing something wrong?
+2
+3 echo "\tPlease enter the battery number you wish to search for..."
+4 read ans
+5
+6 if [[ $ans != 0 ]]
+7
+8 then
+9 cat /dso/eis/log/batlog.log.* |grep $ans
+10 fi
+11
+12 echo "\tWould you like to print this? (y/n)"
+13 read ans1
+14
+15 if [ $ans1 = "y" -o $ans1 = "Y" ]
+16
+17 then
+18 lp -dpcl@pr7
+19
+20 else
+21 exit
+22 fi
~
When I run this, it just hangs out there and nothing prints. Am I doing something wrong?