rsh |
commands on remote machines running the rsh
service.
Syntax
rsh remotehost [-l username] [-n] command
Options
- remotehost
The remote machine running the rsh service.- -l username
The credentials used to run the command on the remote host.- -n
Redirection of standard input of rexec to null.
(Try using this for commands that run interactively.)- command
The command to remotely execute (enclose in quotes if there are
embedded spaces).
Examples
Perform a directory listing on the Unix machine
BONGO as user mitcht by
remotely executing the ls command:
rsh bongo -l mitcht "ls ~"
doc
fig
read.ps
Notes
- WS2003 includes only the client-side rsh command,
so this command is typically used to remotely execute processes on
Unix machines. - Unlike the rexec command discussed earlier,
rsh doesn't prompt for a password
before executing the command remotely. rsh uses
the same authentication mechanism used by rcp,
namely the .rhosts file on the remote machine.
See Also
rcp, rexec,
telnet