mohet01
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ozo has it to the point Expect was especially developed for that kind of task. However it's TCL application JFYI.
ASKER
fridom
are you saying that, xpect utility can't be uses in C program/any shell script?
I did not get u.
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.
The programming language used is Tcl. That's what I meant.
ASKER
thx