Link to home
Start Free TrialLog in
Avatar of mohet01
mohet01Flag for India

asked on

Automating interactive programs

Hello
If i have a shell script on a machine B, which when started, will further ask for manual input for further processing?
From machine A, am looking for an idea in writing any program(C/perl/..) to provide that input?
Sitting in machine A, i should know that machine B script is asking for user input

that input can be say(pragmatic):
yes/no
port # 8080
jdk 1.4

Pre-conditions, on machine B i can only give the wrapper over existing script. But i cannot modify the existing script on machine B

Sham
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ozo has it to the point Expect was especially developed for that kind of task. However it's TCL application JFYI.
Avatar of mohet01

ASKER

fridom
are you saying that, xpect utility can't be uses in C program/any shell script?
I did not get u.
Expect is a tool especially developed for automating such task. You can use it from every C program and/or shell script (in fact expect scripts) are  shell scripts.

The programming language used is Tcl. That's what I meant.
Avatar of mohet01

ASKER

thx