MAN page from Mandrake Other rexec-1.4-1.i386.rpm
REXEC
Section: User Commands (1)
Updated: February 14, 1997
Index NAME
rexec -- remote execution client for an exec server
SYNOPSIS
rexec [
-abcdhns -l username
-p password] host command
DESCRIPTION
Rexeccalls the
rexec(3)routine to act as a client for the remote host's
rexecd(8)server.
It asks that ``command'' be run on the host computer,using username/password authentication. See rexec(3)andrexecd(8)for details of the protocol.
OPTIONS
Rexecaccepts several options, but only three are likely to be very useful:
-l username
- Set the log-in name on the remote host to username.
-p password
- Provide the password for the remote account. The command line argumentwill be blanked after being parsed, to prevent it from beingseen with ps(1).However, it is still not very secure to type the password on the command line. In particular, be sure that the shell's history fileis protected.
- -n
- Explicitly prompt for name and password, even if provided inthe environment, in the $HOME/.netrc file, or in the environmentalvariables REXEC_USER and REXEC_PASS.
Other options that might be useful with non-standard remote execdaemons, or to debug connections:
- -a
- Do not set up an auxiliary channel for standard error from command;the remote standard error and output are then both returned on thelocal standard output. By default, rexecasks that a separate channel be set up for diagnostic outputfrom the remote command.
- -b
- Use signal handling as in BSD rsh(1). Only the signals SIGINT, SIGQUIT, and SIGTERM are echoed to the remote process.They do not remain raised locally, so rexec waits for theremote command to shutdown its side of the socket. Also, CNTRL-Z willonly suspend execution locally--the remote command may continue to run.
- -c
- Do not close remote standard input when local standard input closes.Normally the standard input to the remote command is closed whenthe local standard input is closed.
- -d
- Turn on debugging information. In particular the command sent to theremote host will be echoed.
- -h
- Print a usage message.
- -s
- Do not echo signals received by the rexec onto the remoteprocess. Normally, signals which can be trapped are passedon to the remote process; then, when you type CNTRL-C, the remoteprocess terminates as well.
USERNAME AND PASSWORD
Rexec(1)searches for the username and password in the following order:
- 1. If -n is given on the command line, the user will always beprompted for both, even if they are also given on the command line.
- 2. The command line will be parsed
- 3. If the environmental variables REXEC_USER or REXEC_PASS aredefined, they will define the username or password.
- 4. The $HOME/.netrc file will be searched. Seeftp(1)for a description of this file's format.
- 5. Finally, the user will be prompted if either the username or password remains undefined.
SECURITY
Users of this command should be aware that
rexec(3)transmits their password to the remote host clear text, notencrypted. If the network is not secure to the remote host, thepassword can be comprimised.
SIGNALS
Without the -b option,all signals which can be handled are echoed to the remote process.Afterwards, however, they remain raised in the local process. Typically, this means that
rexec(1)will exit after receiving a fatal signal, even if the remoteprocess has arranged to handle or ignore it.
Differing operating systems use differing signal numbers; for exampleAIX and SunOS use 18 for SIGTSTP (^Z), while Linux uses 20. Therefore, it may have a different effect remotely thanlocally. In particular, typing CNTL-Z may not suspend the executionof the remote process.
EXAMPLE
rexec othermachine cat ">remote_file; date" <local_file
will send local_file to the othermachine as remote_file.
BUGS
Please send bug reports, system incompatibilities,and job offers to the author.
SEE ALSO
rexec(3),
rexecd(8),
rsh(1)
AUTHOR
Michael Sadd
saddAATTmsc.cornell.edu
http://www.msc.cornell.edu/~sadd/
Thanks to Orange Gopher (2/10/97) and Johannes Plass(plassAATTdipmza.physik.uni-mainz.de, Oct. 17 1996) for useful suggestions.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- USERNAME AND PASSWORD
- SECURITY
- SIGNALS
- EXAMPLE
- BUGS
- SEE ALSO
- AUTHOR
This document was created byman2html,using the manual pages.