Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

telnet in VB

Posted on 2001-07-10
7
Medium Priority
?
571 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 400 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month11 days, 19 hours left to enroll

916 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