BeforeExecute Property
A set of Telnet commands to be executed before Command execution.
Data Type
StringDefault Value
""Remarks
BeforeExecute is a script that is executed immediately before executing Command.
Each line in the script is treated as a single command.
Valid additional scripting commands are listed below:
exec Command [Prompt] | Sends Command to the server. If Prompt is not set, the adapter will wait for ShellPrompt or ShellPromptExpression. |
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"Commands that include spaces should be surrounded with quotes. For instance:
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.