in reply to How to give input to terminal (command window) in perl

G'day tsathish123,

Welcome to the Monastery.

That sounds like a job for Expect, whose abstract reads:

"automate interactions with command line programs that expose a text terminal interface"

Depending on how much of a "beginner" you are, you might want to read "perlintro -- a brief introduction and overview of Perl" first. Each section of this has multiple links to further details and more advanced topics: follow as required.

— Ken

  • Comment on Re: How to give input to terminal (command window) in perl