Macro Scheduler 15

TelnetClose

TelnetClose>session_id

 

Not supported in Macro Scheduler Lite.Not supported in Macro Scheduler Lite.

 

Terminates a Telnet session.  Provide the session_id returned by a call to TelnetConnect.

 

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

 

Abbreviation: TNQ

See also: TelnetConnect, 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