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:

Wolfram Research (2018), RemoteConnectionObject, Wolfram Language function, https://reference.wolfram.com/language/ref/RemoteConnectionObject.html.

Text

Wolfram Research (2018), RemoteConnectionObject, Wolfram Language function, https://reference.wolfram.com/language/ref/RemoteConnectionObject.html.

CMS

Wolfram Language. 2018. "RemoteConnectionObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RemoteConnectionObject.html.

APA

Wolfram Language. (2018). RemoteConnectionObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RemoteConnectionObject.html

BibTeX

@misc{reference.wolfram_2023_remoteconnectionobject, author="Wolfram Research", title="{RemoteConnectionObject}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/RemoteConnectionObject.html}", note=[Accessed: 29-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_remoteconnectionobject, organization={Wolfram Research}, title={RemoteConnectionObject}, year={2018}, url={https://reference.wolfram.com/language/ref/RemoteConnectionObject.html}, note=[Accessed: 29-March-2024 ]}