in reply to Hot Oracle backup/RMAN

Am I right in assuming that rman is a command line program?

If yes, you can just try to supply its input to STDIN, or you might find expect helpful.