Re: Telnet Scripting?
- From: Steve Alpert <sra@xxxxxxxxxxxxxxxxx>
- Date: Wed, 06 Jul 2005 12:51:48 -0400
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
.
- References:
- Telnet Scripting?
- From: simsjr
- Re: Telnet Scripting?
- From: Steve Alpert
- Re: Telnet Scripting?
- From: simsjr
- Telnet Scripting?
- Prev by Date: Re: Telnet Scripting?
- Next by Date: Re: COM Wrappers
- Previous by thread: Re: Telnet Scripting?
- Next by thread: Telnet Scripting?
- Index(es):
Relevant Pages
|