remsh(1N) remsh(1N)NAME remsh - invokes to a shell on a remote system SYNOPSIS remsh rhost [-l username] [-n] [command] ARGUMENTS command Specifies the remote command to be executed. If you omit command, then instead of executing a single command, you are logged in on the remote host using rlogin(1N). -l username Specifies a different remote user name. By default, the remote user name that is used is the same as your local user name. The remote account must have its rhosts file set up to grant you permission to log in without prompting you for the password; no provision is made for specifying a password with a command. -n Redirects the standard input to /dev/null. rhost Specifies the remote host system to connect to. DESCRIPTION remsh connects to a specified remote host, rhost, and executes a specified remote command (command) via a local network. On the remote side, you get whatever shell is set up for that account. The remsh program 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; remsh normally terminates when the remote command does. Shell metacharacters that are not quoted are interpreted on the local machine while quoted metacharacters are interpreted on the remote machine. Thus the command remsh rhost cat remotefile >> localfile appends the remote file remotefile to the local file localfile, while remsh rhost cat remotefile ">>" remotefile.2 appends remotefile to remotefile.2. January 1992 1
remsh(1N) remsh(1N)Host names are given in the file /etc/hosts. Each host has one standard name (the first name given in the file), which is rather long and unambiguous, and optionally one or more nicknames. The remote host system names for local machines may also be commands in the directory /usr/hosts; these names must be linked to the remsh binaries. If you put this directory in your search path, then the remsh may be omitted, as in the second form of the command, above. Using remsh, you cannot run an interactive command (like vi(1)); instead, use rlogin(1N). FILES /usr/bin/remsh Executable file /etc/hosts Host file /usr/hosts/* Directory containing host files SEE ALSO rlogin(1N), telnet(1C) A/UX Networking Essentials 2 January 1992