How to automate responses

I would have searched for this but I couldn't really think of what to use for the search text...

I've got a situation where I need to automate responses to an executable when running it from a script so that it can be made into a job the operators don't have to interact with. When I run it myself, the utility asks me two Y/N questions then one where I have to enter something. These three responses are ALWAYS the same, so there's no chance of an error. I need to write a script to wrap the utility and supply the responses.

I know there's a way to do this but I don't remember it. Can anyone point me in the right direction?

Thanks!
djp

myExecutable <<EOF
Y
N
EOF

'man ksh' and search for 'here-document'

Man, I hated asking for something I knew was going to be that simple but I just couldn't think of it. That works great, I apologize for the interruption... :smiley: