Macro Scheduler 15

TelnetConnect

TelnetConnect>host,port,session_id

 

Not supported in Macro Scheduler Lite.

 

Connects to a Telnet server.  Host is the server name or address of the server, port the port number.  The standard Telnet port is 23.  Returns a Session ID to be used with other Telnet commands to manipulate the session.

 

The TELNET_SESSIONLOG variable can be used at any time to see all session activity.

 

Abbreviation: TNC

See also: TelnetClose, TelnetSend, TelnetWaitFor

 

Example

 

TelnetConnect>my.domain.com,23,hTN
TelnetWaitFor>hTN,Press any key to continue,5,r
TelnetSend>hTN,a
TelnetWaitFor>hTN,login,5,r
TelnetSend>hTN,administrator%CR%
TelnetWaitFor>hTN,password,5,r
TelnetSend>hTN,monsoon%CR%
TelnetWaitFor>hTN,>,5,r
TelnetSend>hTN,dir%CR%
TelnetWaitFor>hTN,>,5,dirlist
MessageModal>dirlist
TelnetClose>hTN