in reply to STDIN

Check out Expect and Expect::Simple. Those should do what you are looking for.

Cheers,
Ovid

New address of my CGI Course.
Silence is Evil