Re: Telnet Scripting?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



My guess is that telnet is NOT scriptable. /? doesn't report any features.
You can just throw characters at the connection and use carriage return just as you suggested. You can look into windows scripting host (WSH) - it has a sendkeys method so you might simply execute telnet and throw keys at it that way!


/steveA

simsjr wrote:
Ok, so you're saying that I can simply send text strings to port 23 for the same effect? Like I could send the login information and commands at timed intervals, followed by carriage returns ('Enter' key)? If so, that's great. But can I use vbscript, jscript, or vba to do this?

As an aside, do you know wether or not telnet.exe is even scriptable to begin with?

"Steve Alpert" wrote:


simsjr wrote:

Hello,

I need a way to automate the Windows version of telnet to log into a Unix server, send a couple of text commands, and exit. Simple.

Can Windows telnet be scripted to do this? I can't seem to find a solid "Yes" or "No" answer to this problem.

Oh, and the ground rules are that I can't install a third party terminal or use any functionality that Windows or Microsoft does not provide. So, native tools only.

Thanks!

If you ignore telnet negotiation for terminal type, etc, the solution would be a simple tcp/ip app that opens a connection to port 23 on the server, sends the appropriate text, maybe waits for some reply and logs off. Not a big deal really for a one-off.


btw, you might try posting in .networks NG!

/steveA

--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org) and spaces




--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org) and spaces

.



Relevant Pages

  • Re: SunJavaScript/Flash/IE6 Not Working right! Help?
    ... I don't have yahoo toolbar ... ... , Windows Messenger. ... You could try refreshing Windows Scripting. ... The Safe Mode test should tell you whether the problem lies with IE or ...
    (microsoft.public.windows.inetexplorer.ie6.setup)
  • [Full-Disclosure] ron1n phone home, episode 4
    ... Hacking from Windows 3.x, 95 and NT ... Use secret Windows 95 DOS commands to track down and port surf computers ... Download hacker tools such as port scanners and password crackers designed ... Now you have the option of eight TCP/IP utilities to play with: telnet, ...
    (Full-Disclosure)
  • Re: SP2 ... just a thought to ponder ..Paul Thurrotts site ......
    ... Changes in IE scripting capabilities ... prevents script-initiated changes to IE windows. ... is making changes in SP2 that affect Outlook Express and Windows Messenger, ... You can click in that area of the heading to display the images ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress.stationery)
  • Re: Product for Running Embedded C# Application
    ... Telnet sessions or Web sessions with our Web server on the device and a lot ... There's a Telnet server available to Windows CE ... communicates with specific hardware and forwards data to a back end ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: restrict software installation
    ... Preventing users from executing stuff on their home directory and in ... Is there some similar principle in Windows? ... emphasis on 'minimize network transfers'. ... Perhaps you can control this via some scripting stuff? ...
    (Focus-Microsoft)