TELNET using UNIX Shell Scripting
Posted on 2003-02-26
Can anyone help me with regards to running a telnet in a script file. Below is the code:
telnet 192.168.1.34 8888
get /claims/index.jsp HTTP/1.0
If a try the said script in a manual or line-to-line prompt, it would work properly. But when I run the said script it would never execute the "get /claims/index.jsp HTTP/1.0".
It would display the following messages:
Connected to 192.168.1.34.
Escape character is '^]'.
Connection closed by foreign host.
ERROR [/claims/index.jsp]: not an SCCS file (co1)
ERROR [HTTP/1.0]: not an SCCS file (co1)
Please help, I need it ASAP.