on - execute a command on a remote system with the local environment
on [-i] [-d] [-n] host command [argument] ...
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. The standard output and the standard error from the remote command are sent to the corresponding files for the on command.
The following options are supported:
See attributes(5) for descriptions of the following attributes:
chkey(1), rlogin(1), rsh(1), telnet(1), attributes(5)
cannot connect to server
can't locate mount point
RPC: Authentication error
on server: RPC: can't encode arguments
Other diagnostic messages may be passed back from the server.
When the working directory is remote mounted over NFS, a Control-Z hangs the window.
Root cannot use on.
Закладки на сайте
Проследить за страницей
Created 1996-2020 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру