> I think the "expect" shell command may do what you need. From my brief > look, it allows you to script the expected interactions with any shell > process. And the link... <http://www.rootprompt.org/article.php3?article=5760>