Skip Menu |

This queue is for tickets about the IPC-Cmd CPAN distribution.

Report information
The Basics
Id: 88073
Status: new
Priority: 0/
Queue: IPC-Cmd

People
Owner: Nobody in particular
Requestors: KOHTS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: feature request: child_stdin to be a filehandle
http://stackoverflow.com/questions/9542534/automating-a-prompting-cli-script#comment12104755_9542747 Show quoted text
> I'm trying to automate input into a command line C program (which I have no control over), it takes arguments, runs some processor intensive code (read takes a minute), then prompts to fill out form like information. I'm not sure what the best way to Input into the prompts once they become available. Are there any CPAN libraries which make this easier? How should I go about this? To clarify I'm trying to wrap this program as a library. Kind of like how Git::Wrapper Wraps git.
Show quoted text
> as far as I can see there's no way to send commands to an exec'd program with run_forked or at least no obvious way. Expect seems to work though, just has a learning curve. – xenoterracide Mar 4 '12 at 0:06