Ok, I have a script I use for passing a username/password to log into Oracle. The same method should be able to be used for what you are attempting. I have not tried it, give me some time, and I will try it for you.
First script you would call is get_pw. get_pw calls variable pwfile. pwfile...