5

Script not spooling in result file

view full story
linux-howto

http://www.unix.com – Hi everyone and nice to meet you :) I'm having some issues with a script I'm writing. It's probably most chaotic, I'm no ksh guru, but the idea is to extract an ID with that query, spool it into a file, and read that file making the ID a variable. This has to be done for every row extracted by function extractData Problem is, it doesn't spool. At all. I'm in the dark here because it has always worked for me, but not this time. It's the red/bold part of the script. What am I doing wrong? Thank you in advance! Code: #!/bin/ksh set -x ########### #FUNCTIONS# ########### function extract (HowTos)