Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

telnet in VB

Posted on 2001-07-10
7
Medium Priority
?
560 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 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.

 
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

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.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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

721 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