RE: Unix Shell Script Help
Date: Thu, 12 Feb 2009 23:51:57 -0500
Do you mean the string "cancel", or a control-c terminator? If it's the string "cancel", I would do that in perl, since you can open a program as a bi-directional process. If you just want to send control-c, you can have a forked process that watches the sqlplus command and sends a SIGINT when the right moment comes (check your OS, but on my box that's a kill -2).
From: oracle-l-bounce_at_freelists.org on behalf of Bala Sent: Thu 2/12/2009 11:17 PM
Subject: Unix Shell Script Help
How do i supply "Cancel" in a Unix Shell script after the SQLPLUS command
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL; any tips/ suggestions highly appreciated.
Thanks in Advance
( Hot backup, HP unix, Oracle 10.2.0.4)
http://www.freelists.org/webpage/oracle-l Received on Thu Feb 12 2009 - 22:51:57 CST