Executing commands on another node or tty

Updated: May 06, 2022

If the machines on your network are running Qnet (see Using Qnet for Transparent Distributed Processing), you can execute commands on another machine.

This is known as remote execution. For example:

on -n /net/dasher date

where /net/dasher is the name of the node that you want to run the command on.

When you invoke a command on another node, the command's standard input, standard output, and standard error output are displayed on your console screen (or terminal) unless you explicitly redirect them to another device.

To run a command on a specific tty, use the -t option, specifying the terminal name. For example:

on -t con3 login root

For more information, see the on command in the Utilities Reference.