you could use expect for that. The expect script could be something like :
"Email address/User Name:"
"Do you wish to remain uninformed of security issues*"
You store it as createocm.exp and run it, it should be executable and you should have expect installed
OCM Installation Response Generator 10.3.1.1.0 - Production
Copyright (c) 2005, 2009, Oracle and/or its affiliates. All rights reserved.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Y
The OCM configuration response file (ocm.rsp) was successfully created.