Solved

telnet in VB

Posted on 2001-07-10
7
479 Views
Last Modified: 2008-02-01
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
Comment
Question by:wilch101
7 Comments
 
LVL 3

Expert Comment

by:Maxim10553
ID: 6270929
you can shell to the telnet executable Windows ships with and use that.
0
 
LVL 20

Expert Comment

by:hes
ID: 6270938
Here is an example of a simple telnet client

http://www.freevbcode.com/ShowCode.Asp?ID=2839
0
 
LVL 2

Expert Comment

by:exelrud
ID: 6270996
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6271225
exelrud, i think that you cannot run scripts throught tcp session.
Maybe, with a little work, Maxim10553 would have the answer.
0
 
LVL 3

Accepted Solution

by:
jjmartin earned 100 total points
ID: 6271252
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
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6273764
0
 
LVL 1

Author Comment

by:wilch101
ID: 6273829
The rexec command is exactly what I need.  I was unaware that it existed.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now