Mark Stosberg wrote:
`echo 'y' | my_shell_cmd`

I'm sure there's some other cooler way, but this works well enough for me.

If it needs something fancier, like a pseudoterminal, you can use the Expect module (e.g., testing the Unix passwd program requires this). But if the simple echo works, keep it simple.
--
Danny R. Faught
Tejas Software Consulting
http://tejasconsulting.com/

Reply via email to