[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Write error log to other file on executing a .SQl file from shell script

Asked by pradeep_bansal in Oracle Database, HijackThis Software, Bourne-Again Shell (bash)

I am executing a sql script 'test.sql ' from shell script. Script 'test.sql' writes output to a flat file using spool.

'test.sql' body is similar like
spool /root/test.inl
select * from dual;
spool off
exit

I want to ensure whether it has run succesfully, if not write log error to some test.log file.
Currently it is writting output and error in same file i.e in test .inl

Kindly help me out to collect error log seperatly asap.
Thanks
[+][-]11/05/09 05:21 AM, ID: 25749092Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 11:24 PM, ID: 25757273Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625