I'm having some troubles capturing errors from some sql scripts that i'm running and looking for some ideas.
This works and it's running but I can't seem to retrieve any errors from it. The $? variable always returns 0(success).
Test.sql contains a list of sqlplus commands.
Any other way of doing it ?
I wouldn't like to take every SQL command out of the test.sql file and run it through DBI.
Would capturing the output from system and grepping for ERROR work for all cases ?
Thanks monks,
-Paul