• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 593
  • Last Modified:

telnet in VB

Is it possible to use telnet in a VB program.  I would like the program to log into a UNIX server, run a script, and log back off.

Thanks
Jw
0
wilch101
Asked:
wilch101
1 Solution
 
Maxim10553Commented:
you can shell to the telnet executable Windows ships with and use that.
0
 
hesCommented:
Here is an example of a simple telnet client

http://www.freevbcode.com/ShowCode.Asp?ID=2839
0
 
exelrudCommented:
Get an socket component
telnet is a simple protocol, send data then receive data.
I am not sure but I think one socket component comes with Visual Studio.
Or you can do the socket handling yourself in VB (http://www.15seconds.com/issue/990408.htm)
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Richie_SimonettiIT OperationsCommented:
exelrud, i think that you cannot run scripts throught tcp session.
Maybe, with a little work, Maxim10553 would have the answer.
0
 
jjmartinCommented:
You can purchase a telnet control from http://www.catalyst.com  I've used it several times myself and it works very well.

If you are running on NT, your can Rexec (remote execute) to the unix box to execute your shell script.
0
 
Richie_SimonettiIT OperationsCommented:
0
 
wilch101Author Commented:
The rexec command is exactly what I need.  I was unaware that it existed.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now