Hi guys,
I know this has been covered quite a bit. But I feel this is a different situation.
I am basically running a KSH buy it runs a couple ISQL (Informix SQL) scripts inside. But If I use a case loop for choosing 1 or 2 to either change a database or not I get errors on the longs of line # '<' not equal. E.g I am running a command as of: isql -s >> /tmp/log.log << EOF But to end each line of a ISQL update you have to use ; to end each paragragh. BUt as you are well aware in a case statement you use ;; and esac. What I am attempting is to pass the job number variable to 2 other scripts that seperately run the updates.
Here is the code I am using to get the variable:
echo " "
echo " "
echo " "
echo " Enter Customers Job Number :\t\c "; read jno
echo " "
What I want to do next in my choose statement is this:
/usr/cs3/scripts/estupd.sc "$jno"
And then the shell script at the other end will then read in the $jno variable.
Any ideas ?
Thanks in advance
I know this has been covered quite a bit. But I feel this is a different situation.
I am basically running a KSH buy it runs a couple ISQL (Informix SQL) scripts inside. But If I use a case loop for choosing 1 or 2 to either change a database or not I get errors on the longs of line # '<' not equal. E.g I am running a command as of: isql -s >> /tmp/log.log << EOF But to end each line of a ISQL update you have to use ; to end each paragragh. BUt as you are well aware in a case statement you use ;; and esac. What I am attempting is to pass the job number variable to 2 other scripts that seperately run the updates.
Here is the code I am using to get the variable:
echo " "
echo " "
echo " "
echo " Enter Customers Job Number :\t\c "; read jno
echo " "
What I want to do next in my choose statement is this:
/usr/cs3/scripts/estupd.sc "$jno"
And then the shell script at the other end will then read in the $jno variable.
Any ideas ?
Thanks in advance