Automate rman login with shell script

From: sundar mahadevan <sundarmahadevan82_at_gmail.com>
Date: Fri, 9 Dec 2011 15:38:09 -0500
Message-ID: <CADmQEr7Fixwd4A8MSiVV5MVSg7DizD9ZLHRwd1WfW6SiSc9kzg_at_mail.gmail.com>



Hi All,
I have done the following similar with sqlplus -s but cant get this for rman. Not sure what i am doing wrong. i tried it with "echo -e" as well but cant get it to work. Has anyone got this to work? Thanks in advance. cmd="rman target sys_at_cricprod_prim.theglobeandmail.com auxiliary sys_at_cricprod_logstdby.theglobeandmail.com@/u01/app/oracle/sm/build_cricprodls.rcv <<EOF\n
PasswordOfPrim\n
PasswordOfLogstdby\n
EOF" eval "$cmd"
--
http://www.freelists.org/webpage/oracle-l
Received on Fri Dec 09 2011 - 14:38:09 CST

Original text of this message