If yes, you can just try to supply its input to STDIN, or you might find expect helpful.
In reply to Re: Hot Oracle backup/RMAN by moritz in thread Hot Oracle backup/RMAN by Ronnie