rlogin
to do a remote login to another
machine, and rsh
to execute a program remotely. Both programs
default to the current user name, and don't require a password if the
hostname - username combination is listed in the .rhosts
file of the remote user.
rlogin hostname [-l username] rsh hostname [-n] [-l username] [program]The
-l
option is used to specify the remote user name; the
-n
option of rsh
is used to make sure the program
doesn't wait for input, making it possible to execute the command in the
background.
rlogin
and rsh
programs to the remote program are the username and terminal type. No other
environment variables are passed on. Therefore, the program at the remote side
doesn't know the value of the $DISPLAY
variable which contains the
name or number of the X display you are currently using, and this makes it
impossible to run X applications on the remote host.
SFINX therefore provides two enhanced versions:
Rlogin
& Rsh
(note the capitals !!),
which pass along your X11 display information.
Rlogin
is not intelligent enough to distinguish machines outside
our local domain, like Xterm does. Therefore, if you
use Rlogin
to login to e.g. a machine in Groningen, or at the CRI,
the $DISPLAY
will still be set to e.g. vecht:0.0
,
whereas the remote machine should in fact need a fully qualified hostname,
including the domainname. In such cases, please use
Xterm.