The on program is used to execute commands on another system, in an environment similar to that invoking the program. All environment variables are passed, and the current working
directory is preserved. To preserve the working directory, the working file system must be either already mounted on the host or be exported to it. Relative path names will only work if they are within
the current file system; absolute path names may cause problems.
The standard input is connected to the standard input of the remote command, and the standard output and the standard error from the remote command are sent to the corresponding files for the on command.
|