Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 580
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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