Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to use perl to capture its output while inputting data to an external command

by Fletch (Bishop)
on Sep 24, 2021 at 03:54 UTC ( [id://11136976]=note: print w/replies, xml ) Need Help??


in reply to How to use perl to capture its output while inputting data to an external command

Something like IPC::Run will (presuming the presence of an *NIX-y enough OS with ptys) make expect-ish automation of interactive programs possible. Alternately there's . . . erm, Expect. Use one of those to start your program, send it your input, read back the output, yadda yadda yadda.

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re: How to use perl to capture its output while inputting data to an external command
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11136976]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-24 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found