PowerTCP Emulation for ActiveX
from $699.00Available Platforms
Sending a command using REXEC
Sending a command using REXEC is simple with the PowerTCP Telnet control, as demonstrated by the sample below:
' Timeout after 30 seconds
Telnet1.Timeout = 30000
' Execute a command to reboot a UNIX host
Telnet1.Rexec "myhost", "myUsername", "myPassword", "reboot"
' Receive the output
Dim Output As String
Telnet1.Receive Output
' Display
Debug.Print Output