Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting to Unix through TELNET and executing a Unix Script 2

Status
Not open for further replies.

Dauphy

IS-IT--Management
Nov 8, 2001
111
CA
Hi:

Can anyone point me in the right direction (sample code would be really nice) to connect to a Unix box using Telnet and then executing a script. I've looked high and low and realize there is asocket.dll which used to be free (but is quite pricey now) which will do the trick quite nicely. Thanks!



 
Well, I've downloaded and it makes sense - however I've never written any .asp which it is intended for; and I've written very little VB.NET. So, I just need a bit of a helping hand to get me started.

For example; first line should be as follows???

Imports Sockets

And to create a new socket object???

Dim TNSocket as New Socket





 
I figured this part out...

Imports socket.tcp
Private objsocket as new Socket.tcp


I'll keep plugging away...



 
You will probably get more answers in forum796 - this forum focusses on VB5/6

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Thanks... I realized that after I posted. I was going to repost if I didn't figure it out... but all is good. That's an awesome tool!
 
Are you sure you don't want to use SSH to do this? telnet is one of the old protocols that were developed before the intenet became a playground for evil attacks. Usernames and passwords are transmitted in plaintext as far as I know. Therefore, connections to a unix box are usually done using SSH. So if the unix box is on the big evil internet and not in your safe intranet, I would not use telnet directly.
 
Thanks Don... it's all internal. But I had better be safe and see if that particular .dll supports SSH. It probably does.
 
Gosh, .Net huh?

Surely .Net has some built in whizbang for this in its megaruntime and gigalibraries? ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top