Sends command to TELNET server terminated by command terminator.

Namespace: Jscape.Telnet
Assembly: Jscape.Telnet (in Jscape.Telnet.dll) Version: 2.6.1.0

Syntax

C#
public void SendNoWait(
	string command
)
Visual Basic
Public Sub SendNoWait ( _
	command As String _
)
Visual C++
public:
void SendNoWait(
	String^ command
)

Parameters

command
Type: System..::..String
The command to send.

Remarks

Does not wait for the shell prompt to be returned.

Examples

To send a command to the TELNET server without waiting for the shell prompt, invoke the SendNoWait method. In this example, 'exit' is sent immediately. The SendNoWait method automatically appends '\n' to the command.
CopySendNoWait
// Terminate TELNET session without waiting for shell prompt.
session.SendNoWait("exit");

CopySendNoWait
' Terminate TELNET session without waiting for shell prompt.
session.SendNoWait("exit")

See Also