Help required

S

Sunil Shukla

Hi,

I am coding a program in Perl which invokes another executable program
(say program 2). But the problem is that when program 2 is run it asks
user for some input. Since i have to run program 2 a lot of times
through my own Perl program, it is not possible to provide the input
to program 2 from console. Can i pass the value of input to program 2
via any way. Program 2 is a dos based program and its not mine. I only
have a exe of Program 2.


Thanks a lot,
Sunil
 
F

Fatted

A nicer subject might have been something like "Providing input to
external program run from Perl" or some such.

Sunil said:
Hi,

I am coding a program in Perl which invokes another executable program
(say program 2). But the problem is that when program 2 is run it asks
user for some input. Since i have to run program 2 a lot of times
through my own Perl program, it is not possible to provide the input
to program 2 from console. Can i pass the value of input to program 2
via any way. Program 2 is a dos based program and its not mine. I only
have a exe of Program 2.
Check out the Expect module from CPAN.
 

Ask a Question

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.

Ask a Question

Similar Threads

Homework in C - Help Needed 1
Android App Help Required 5
Please help 7
Can anyone help me code a simple python code? 1
Help for a newbie 13
While loop unclear, can someone help? 4
Python battle game help 2
Help me 4

Members online

Forum statistics

Threads
474,269
Messages
2,571,100
Members
48,773
Latest member
Kaybee

Latest Threads

Top