A
a
I need to run a program that need input at run time.
Is it possible to simulate this by perl?
Thanx
Is it possible to simulate this by perl?
Thanx
a said:I need to run a program that need input at run time.
Is it possible to simulate this by perl?
Thanx
Josef said:It depends.
You can open a pipe to the program and send the input through the pipe
(beware of buffering):
open(DST, '|', $program);
print DST "Input\n";
Or look at Perl/Expect.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.