in reply to
how to send input to stdin automatically?
I think you'll need to look at
Expect
(or one of its variants).
Comment on
Re: how to send input to stdin automatically?
In Section
Seekers of Perl Wisdom