Your option will also not work in my case disedorgue.
Let me explain it again..
I have a script which will zip a xml file and encrypt the file using PGP encryption. While encrypting, it is asking me to type a y/N to proceed. In this case I have to input a y manually and enter to continue.
However I need a way to pass the y automatically and continue. Please help me with this.