Subject | checking 'isql -i |
---|---|
Author | blueteeshirt |
Post date | 2002-02-15T17:03:25Z |
Hi,
I'm calling isql scripts (using the -i option) from within unix
scripts (sh).
I can't figure out an easy way to reliably detected whether the script
executed without error, because isql doesn't seem to indicate an error
in its return value.
(My hack-version currently streams the output into a file and greps
for SQLCODE, which doesn't always work because there are errors
without such a code).
Any hints would be appreciated,
thanks, Georg
..............................................................
Georg Ritter
Silvaco G.RE.CE
Email : georgr@...
I'm calling isql scripts (using the -i option) from within unix
scripts (sh).
I can't figure out an easy way to reliably detected whether the script
executed without error, because isql doesn't seem to indicate an error
in its return value.
(My hack-version currently streams the output into a file and greps
for SQLCODE, which doesn't always work because there are errors
without such a code).
Any hints would be appreciated,
thanks, Georg
..............................................................
Georg Ritter
Silvaco G.RE.CE
Email : georgr@...