Quantcast
Channel: An error of variable type? - Unix & Linux Stack Exchange
Browsing index pages (3 articles)
↧

An error of variable type?

I've an error that I don't understand, it seems that that the problem is that my parameters into the shell are not of the same type as what they are in my SQL Database. For a better understanding:...

View Article


Answer by Archemar for An error of variable type?

setting of shell variable should be made before sqlplus call IFS=$'\n' for i in $(cat $LST_HOME/doc.lst) do P1=$(echo $i | awk '{print $1}') P2=$(echo $i | awk '{print $2}') P3=$(echo $i | awk '{print...

View Article


Answer by Stephen Kitt for An error of variable type?

As indicated in Shell : while read line nested, you can just do something like (sed "s|^|@${SQL_HOME}/update_p.sql |" ${LST_HOME}/doc.lst; echo exit) | sqlplus64...

View Article
Browsing index pages (3 articles)


Latest Images