Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Sending and receiving output to a console based application

by Corion (Patriarch)
on Sep 07, 2018 at 14:57 UTC ( [id://1221930]=note: print w/replies, xml ) Need Help??


in reply to Sending and receiving output to a console based application

Depending on what kind of "console" application that is, and what kind of OS you are running, there are various approaches that can help you:

  • Expect - doesn't work on Windows, but can talk to "terminal based" processes on the same machine
  • IPC::Run3 - works "everywhere", but can't talk to PTY-based terminals, only via STDIN / STDOUT
  • Win32::GuiTest - works only on Windows and can talk to any local window there
  • IBM 3270 console - can be automated through Win32::OLE
  • perlipc has more hints on IPC in general

You haven't told us much to give you better advice. What would help us to give you more concrete advice would be the OS your server runs and the kind of application you're running. If that application uses a pseudo-TTY, you will need an automation that can talk to a PTY.

  • Comment on Re: Sending and receiving output to a console based application

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-19 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found