Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

simulating/automating the user of interactive console program

Name: Anonymous 2019-02-13 7:56

assume we have an interactive console program - you know, not a unixy filter but something that asks the user questions and waits for answers. this program doesn't provide any sort of API, just the interactive interface. what would be the best (and preferably most portable) way of writing a program that communicates with it in a bidirectional way (so it can't be simply piped to its stdin, as we need to feed its stdout back) without modifying the target program?

Name: Anonymous 2019-02-13 8:22

in jabba: make a Process with ProcessBuilder, then use getOutputStream() to get an object that pipes data into it and getInputStream() for an object that reads returned data

Name: Anonymous 2019-02-15 14:43

man expect

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List