Automate rman login with shell script

From: sundar mahadevan <>
Date: Fri, 9 Dec 2011 15:38:09 -0500
Message-ID: <>

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 auxiliary <<EOF\n
EOF" eval "$cmd"
Received on Fri Dec 09 2011 - 14:38:09 CST

Original text of this message