Text string example

Example 1

To check an IRC (Internet Relay Chat) service, you can send the command Version/r/n and the expected response from the IRC service is: irc.

Name: IRC; Port: 6667; TCP.

Send=Version/r/n

Expect=irc

Send=QUIT/r/n

Note: You can use Telnet to find the proper value for SimpleExpect, or an Expect string for a particular service. Packet Capture tools can also be very useful.

See Also

Rules Expression Editor

Script Syntax

Script Syntax: Expect=Keyword

Script Syntax: Send=Keyword

Script Syntax: SimpleExpect Keyword

Script Syntax: Flow Control Keywords

Send to disconnect examples

Regular Expression syntax