Sign in to follow this  
Followers 0
mentosan

help on a script for telnet session

3 posts in this topic

Hi guys !

I'm building a script which will launch a telnet session and then it will send commands from time to time in a loop. I'm having 2 issues, hope to find the answers from you:

1). I want to use ControlSend to send strings in the telnet window; I need the ControlId but AutoIt Window Info with Finder Tool pointed in the telnet window shows nothing. So for example if I want to send command "ls" the synthax would be something like : ControlSend ("telnet","",?!,"ls") ?

2). What is the function in autoit which reads command from the output (telnet) ? For example I want to set a condition in the script when mesage "not connected" occurs.

Thank you

Share this post


Link to post
Share on other sites



Q2. Look in help file about StdoutRead or search on forum for examples.


When the words fail... music speaks

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

OK. Thx

Edited by mentosan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0