Sends command to SSH host terminated by command terminator. Waits until specified prompt is returned by SSH server buffering response data.

Namespace: Jscape.Ssh
Assembly: Jscape.Ssh (in Jscape.Ssh.dll) Version: 2.7.2.0

Syntax

C#
public string SendWait(
	string command,
	string prompt,
	bool regex
)
Visual Basic
Public Function SendWait ( _
	command As String, _
	prompt As String, _
	regex As Boolean _
) As String
Visual C++
public:
String^ SendWait(
	String^ command, 
	String^ prompt, 
	bool regex
)

Parameters

command
Type: System..::..String
the command to send
prompt
Type: System..::..String
the prompt to wait for
regex
Type: System..::..Boolean
if true the prompt string is treated as regular expression

Return Value

the server response

See Also