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@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx auxiliary sys@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@/u01/app/oracle/sm/build_cricprodls.rcv <<EOF\n PasswordOfPrim\n PasswordOfLogstdby\n EOF" eval "$cmd" -- //www.freelists.org/webpage/oracle-l