Annotation of 43BSDReno/foreign/man/rsh.0, revision 1.1.1.1

1.1       root        1: RSH(1)                     UNIX Reference Manual                       RSH(1)
                      2: 
                      3: NNAAMMEE
                      4:      rrsshh - remote shell
                      5: 
                      6: SSYYNNOOPPSSIISS
                      7:      _r_s_h [--KKddnn] [--kk _r_e_a_l_m] [--ll _u_s_e_r_n_a_m_e] _h_o_s_t [command]
                      8: 
                      9: DDEESSCCRRIIPPTTIIOONN
                     10:      RRsshh executes _c_o_m_m_a_n_d on _h_o_s_t.
                     11: 
                     12:      RRsshh copies its standard input to the remote command, the standard output
                     13:      of the remote command to its standard output, and the standard error of
                     14:      the remote command to its standard error. Interrupt, quit and terminate
                     15:      signals are propagated to the remote command; rrsshh normally terminates
                     16:      when the remote command does.  The options are as follows:
                     17: 
                     18:      --KK        The --KK option turns off all Kerberos authentication.
                     19: 
                     20:      --dd        The --dd option turns on socket debugging (using setsockopt(2))
                     21:               on the TCP sockets used for communication with the remote host.
                     22: 
                     23:      --kk        The --kk option causes rrsshh to obtain tickets for the remote host
                     24:               in _r_e_a_l_m instead of the remote host's realm as determined by
                     25:               krb_realmofhost(3).
                     26: 
                     27:      --ll        By default, the remote username is the same as the local user-
                     28:               name.  The --ll option allows the remote name to be specified.
                     29:               Kerberos authentication is used, and authorization is deter-
                     30:               mined as in rlogin(1).
                     31: 
                     32:      --nn        The --nn option redirects input from the special device /_d_e_v/_n_u_l_l
                     33:               (see the BUGS section of this manual page).
                     34: 
                     35:      If no _c_o_m_m_a_n_d is specified, you will be logged in on the remote host us-
                     36:      ing rlogin(1).
                     37: 
                     38:      Shell metacharacters which are not quoted are interpreted on local
                     39:      machine, while quoted metacharacters are interpreted on the remote
                     40:      machine.  For example, the command
                     41: 
                     42:           rsh otherhost cat remotefile >> localfile
                     43: 
                     44:      appends the remote file _r_e_m_o_t_e_f_i_l_e to the local file _l_o_c_a_l_f_i_l_e, while
                     45: 
                     46:           rsh otherhost cat remotefile ">>" other_remotefile
                     47: 
                     48:      appends _r_e_m_o_t_e_f_i_l_e to _o_t_h_e_r__r_e_m_o_t_e_f_i_l_e.
                     49: 
                     50: FFIILLEESS
                     51:      /_e_t_c/_h_o_s_t_s
                     52: 
                     53: 
                     54: SSEEEE AALLSSOO
                     55:      rlogin(1), kerberos(3), krb_sendauth(3), krb_realmofhost(3)
                     56: 
                     57: HHIISSTTOORRYY
                     58:      RRsshh appeared in 4.2 BSD
                     59: 
                     60: BBUUGGSS
                     61:      If you are using csh(1) and put a rrsshh in the background without redirect-
                     62:      ing its input away from the terminal, it will block even if no reads are
                     63:      posted by the remote command.  If no input is desired you should redirect
                     64:      the input of rrsshh to /_d_e_v/_n_u_l_l using the --nn option.
                     65: 
                     66: 
                     67:      You cannot run an interactive command (like rogue(6) or vi(1)) using rrsshh;
                     68:      use rlogin(1) instead.
                     69: 
                     70:      Stop signals stop the local rrsshh process only; this is arguably wrong, but
                     71:      currently hard to fix for reasons too complicated to explain here.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.