Re: ISQL
Posted in 1992
longleye@aztec.swindon.rtsg.mot.com (Edward Longley) writes: >I am trying to run a .sql file from a shell-script, spooling >the output to a file. I am trying the following: >isql -s database_name -qcon ed.sql ed.lis >where ed.lis is what I was hoping to "Output" to. I have tried >many other variations - non of which work. How do I do this? Depends on which output you want; output such as "XXX row(s) retrieved", or "XXX row(s) unloaded", or "Table created", i.e., status messages, are sent to stderr. If that's what you're after, try redirecting stderr to stdout using "2>&1", or redirect stderr to your file using "2>ed.lis". -- Adam Andrews "When the going gets weird, we get even weirder." uunet!rexago8!aa or aa@rexago8.UUCP e-mail only to aa@summitis.com