A set of Tcp commands to be executed before DataToSend is sent.
BeforeSend is a script that is executed immediately before executing 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.|
exec "echo hello"Quotes within a command do not need to be escaped. For instance:
exec "echo hello "world""Will send:
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"Will send "pwd" followed by a CrLf sequence.
The "\" escape character is also used when specifying non-ASCII characters by passing Hex encoded values. For instance:
exec "\7F"Will send the DEL control character.