p .Nm copies its standard input to the remote command, the standard output of the remote command to its standard output, and the standard error of the remote command to its standard error. Interrupt, quit and terminate signals are propagated to the remote command; .Nm normally terminates when the remote command does. The options are as follows: l -tag -width flag t Fl K The .Fl K option turns off all Kerberos authentication. t Fl d The .Fl d option turns on socket debugging (using .Xr setsockopt 2 ) on the .Tn TCP sockets used for communication with the remote host. t Fl k The .Fl k option causes .Nm to obtain tickets for the remote host in .Ar realm instead of the remote host's realm as determined by .Xr krb_realmofhost 3 . t Fl l By default, the remote username is the same as the local username. The .Fl l option allows the remote name to be specified. Kerberos authentication is used, and authorization is determined as in .Xr rlogin 1 . t Fl u The .Fl u option allows the local username to be specified. Only the superuser is allowed to use this option. t Fl n The .Fl n option redirects input from the special device
a /dev/null (see the .Sx BUGS section of this manual page). t Fl x The .Fl x option turns on .Tn DES encryption for all data exchange. This may introduce a significant delay in response time. .El
p
p Shell metacharacters which are not quoted are interpreted on local machine, while quoted metacharacters are interpreted on the remote machine. For example, the command
p .Dl rcmd otherhost cat remotefile >> localfile
p appends the remote file .Ar remotefile to the local file .Ar localfile , while
p .Dl rcmd otherhost cat remotefile ">>" other_remotefile
p appends .Ar remotefile to .Ar other_remotefile . .Sh FILES l -tag -width /etc/hosts -compact t Pa /etc/hosts .El .Sh SEE ALSO .Xr rsh 1 , .Xr krb_realmofhost 3 , .Xr krb_sendauth 3 , .Xr kerberos 8 .Sh HISTORY The .Nm command appeared in .Nx 1.3 and is primarily derived from .Xr rsh 1 . Its purpose was to create a backend driver for .Xr rcmd 3 that would allow the users of .Xr rcmd 3 to no longer require super-user privileges. .Sh BUGS If you are using .Xr csh 1 and put a .Nm in the background without redirecting its input away from the terminal, it will block even if no reads are posted by the remote command. If no input is desired you should redirect the input of .Nm to
a /dev/null using the .Fl n option.
p You cannot use .Nm rcmd to run an interactive command (like .Xr rogue 6 or .Xr vi 1 ) . Use .Xr rlogin 1 instead.
p The stop signal, .Dv SIGSTOP , will stop the local .Nm process only. This is arguably wrong, but currently hard to fix for reasons too complicated to explain here.