in reply to running an interactive only program using perl
Should do it. See perlopentut.open PROG,"|/some/program" or die "Can't fork program: $!"; print PROG "input line 1\n"; print PROG "input line 2\n"; close PROG;
For interactive sessions, see Expect and IPC::Open3 or IPC::Open2
|
|---|