Re: Read telnet screen



BIG tnx for reply ...

I'm tested it's

Uzytkownik "Justin Piper" <jpiper@xxxxxxxxx> napisal w wiadomosci
news:op.tf8ix1b1cs3d1w@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Thu, 21 Sep 2006 06:13:47 -0500, Pawel <pvl@xxxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:

Welcome.

How to a check telnet login process
I'm run PuTTy session, send login:
WshShell.SendKeys TELNET_LOGIN
WshShell.SendKeys"{ENTER}"

WshShell.SendKeys TELNET_PASSWORD
WshShell.SendKeys"{ENTER}"
And need check login process - what show telnet screet (UNIX prompt or
LOGIN_SCREEn)

How to use vbs to read telnet screen information ???

A full install of PuTTY comes with a command-line program called "plink"
that you could use. I have included a simple example that just reads a
line from the console and writes it to plink. It assumes plink is in the
path.

Option Explicit

Dim port, host
With WScript.Arguments
port = Trim(.Named("port"))
host = Trim(.Named("host"))
End With

Select Case ""
Case port, host
WScript.Quit
End Select

Dim sh, putty
Set sh = CreateObject("WScript.Shell")
Set putty = sh.Exec(Join(Array("plink -raw -P ", port, host)))

Do Until putty.Status = 1
putty.StdIn.WriteLine WScript.StdIn.ReadLine()
WScript.StdOut.WriteLine putty.StdOut.ReadLine()
Loop

--
Justin Piper
Bizco Technologies
http://www.bizco.com/


.



Relevant Pages

  • Re: Read telnet screen
    ... How to a check telnet login process ... I'm run PuTTy session, send login: ... Dim port, host ...
    (microsoft.public.scripting.vbscript)
  • Re: Auto Disconnecting...
    ... Host OS: Debian Woody. ... telnet stream tcp nowait telnet.telnet /usr/sbin/tcpd ... puTTy (telnet protocol) ...
    (Debian-User)
  • Re: PuTTY question
    ... Are there any PuTTY settings or remote ... That sounds plausibly like the Telnet NOP packet is being sent ... Does your alleged Telnet server actually speak the Telnet protocol? ...
    (comp.security.ssh)
  • Re: PuTTY question
    ... Are there any PuTTY settings or remote ... That sounds plausibly like the Telnet NOP packet is being sent ... Does your alleged Telnet server actually speak the Telnet protocol? ...
    (comp.security.ssh)
  • Using Putty for the SSH tunnel AND the telnet program
    ... I've successfully configured putty to connect to the SSH ... tunnel, forward the telnet traffic, and use our client telnet program ... I realize that Putty is just trying to make the SSH connection, ...
    (comp.security.ssh)