Search Results

Search: Posts Made By: gaijin 06
4,765
Posted By gaijin 06
Oh you're right, and so was Perderabo.... thanks...
Oh you're right, and so was Perderabo.... thanks for this.

The echo out wasn't working properly, but the command was being issued to db2 correctly... and db2 helpfully returned an error because...
4,765
Posted By gaijin 06
Hmm, it seems to be working when I echo now, but...
Hmm, it seems to be working when I echo now, but not issuing to db2


while read SQLStatement
do
echo "Running : $SQLStatement" |tee -a $LogFile
...
4,765
Posted By gaijin 06
Odd.... I tried your example ZB and it also...
Odd.... I tried your example ZB and it also worked for me! :eek:

However when I execute it in the script it is still expanding the * for me... I don't know why. I'll post the entire script in...
4,765
Posted By gaijin 06
Thanks for the suggestion.... I tried this, but...
Thanks for the suggestion.... I tried this, but the expansion of the * character happens during the read.... if I echo the string out straight after the read then it is already expanded.
4,765
Posted By gaijin 06
Preventing wildcard expansion in "read"
Hi, I'm trying to use "read" to read in SQL lines and then apply to UDB. However KSH is expanding the *'s in the SQL into a list of all the files in the current directory...

Anyway to turn this...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 01:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy