Jump to content

help on a script for telnet session


Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...