RemoteConnectionObject

RemoteConnectionObject[]

is an object that represents a remote connection.

Details

  • RemoteConnectionObject can be used in RemoteRun and RemoteRunProcess to execute multiple commands.
  • RemoteConnectionObject has the following properties:
  • "Host"the remote host
    "Username"the user connected to the remote host
    "UUID"unique connection identifier
    "StandardInput"input stream for the remote connection
    "StandardOutput"output stream for the remote connection
    "StandardError"error stream for the remote connection

Examples

open allclose all

Basic Examples  (1)

Create a remote connection object:

Display the time since boot for the remote machine:

Write to the input stream of the remote object:

Read from the output stream:

Close the session:

Scope  (1)

Connect to a remote host:

The object contains properties relevant to the connection:

List the properties:

Close the session:

Properties & Relations  (1)

Create a remote connection object:

Write to the input stream of the remote object:

Read from the output stream:

Close the session:

Neat Examples  (1)

Create a remote connection object:

Run WolframScript on the remote machine:

Introduced in 2018
 (11.3)