Macro Scheduler 15

TelnetSend

TelnetSend>session_id,text

 

Not supported in Macro Scheduler Lite.

 

Sends text to a Telnet session.   session_id is a session ID returned by a call to TelnetConnect.

 

To send a carriage return use %CR%.

 

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

 

Abbreviation: TNS

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

MessageModal>TELNET_SESSIONLOG
TelnetClose>hTN