AfterSend Property
A set of commands to be executed after DataToSend is sent.
Data Type
StringDefault Value
""Remarks
AfterSend is a script that is executed immediately following the execution of DataToSend.
Each line in the script is treated as a single command.
Valid additional scripting commands are listed below:
sendex Data [Response] | Sends Data to the server. If Response is not set, the adapter will wait for ExpectedResponse or ExpectedResponseExpression. |
send Data | Sends Data to server and does not wait for a response. |
wait ExpectedResponse | Waits for a server response that includes ExpectedResponse. If no matching response is received within Timeout seconds an error occurs. |
sleep Time | Sleeps Time seconds. |
Commands that include spaces should be surrounded with quotes. For instance:
exec
"echo hello"
exec
"echo hello "
world
""
echo hello
"world"
The "\" character is the escape character. It is used with the special case of Cr and Lf characters. For instance:
exec
"pwd\r\n"
The "\" escape character is also used when specifying non-ASCII characters by passing Hex encoded values. For instance:
exec
"\7F"