Sending commands to a secondary prompt

S

sanjeeb

Hello,
Is there any way to send parameters to a secondary command prompt
through perl script.
Suppose there is a command XYZ , which when invoked gives another
secondary prompt. I want to send command to the secondary prompt and
will do the rest of the task after that.

e.g
Spec-
OS: Win Xp
Build : 5.8

Regards
sanjeeb
 
M

Mark Clements

sanjeeb said:
Hello,
Is there any way to send parameters to a secondary command prompt
through perl script.
Suppose there is a command XYZ , which when invoked gives another
secondary prompt. I want to send command to the secondary prompt and
will do the rest of the task after that.

e.g
c:\XYZ <ENTER>
Spec-
OS: Win Xp
Build : 5.8

I'm not entirely sure what you're after, but try

Expect

http://search.cpan.org/~rgiersig/Expect-1.20/Expect.pod

Mark
 

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

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top