Hi expert guys,
I have unix server where i have a application for some special commands. Below way to entering in that application-
bash-2.05$ telnet 11.13.58.39 2310
Trying 0.0.0.0...
Connected to ..
Escape character is '^]'.
CONNECTING TO...
PROCESS 2310 CONNECTED...
Enter command: LOGIN:user1asswd1;
RESP:0;
Enter command: GET:SUBSCRIBERINFORMATION:SubscriberNumber,012365875;
RESP:0:Profile,01:MSI,987012365875:RIM,987012365875
Enter command: LOGOUT;
RESP:0;
Enter command: Connection to . closed by foreign host.
$
Now i want to make a ineterface for a user "john" in same machine where User "john" will use the below ineterface. In fact, below ineterface will directly ineterct with above application(green colored).
Whatever the command "john" will put it will go first to above application and show the response in below john's interface-
login:john
password:***
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
----------Welcome to John Command Interface----------
Enter Command or type EXIT to exit
GET:SUBSCRIBERINFORMATION:SubscriberNumber,012365875;
GET:SUBSCRIBERINFORMATION:SubscriberNumber,012365875;
RESP:0:Profile,01:MSI,987012365875:RIM,987012365875;
Enter command:
Enter Command or type EXIT to exit
EXIT
Now u see above "GET:SUBSCRIBERINFORMATION:SubscriberNumber,012365875;" comes twice. and "Enter command" prompt comes again. How do I stop viewing those?
attachment: -- user "john" .profile
-- expect script to inetract with the application
//purple