Index of /kzak/rsh/rsh-fifo
What's ... ?
~~~~~~~~~~~~
rsh-fifo -- persistent connection to remote shell
The 'rsh-fifo' tries resolve problem with standard 'rsh' limits that disable use
rsh in very often called scripts.
Compilation
~~~~~~~~~~~
make
make install
Notes
~~~~~
The command "rsh-fifo -C" works as backend for commands "rsh-fifo -R cmd". For the
communication between backend and client is used fifo(4). There is two fifos - the
first fifo is "master" fifo and "rsh-fifo -C" listen there for new rsh commands and
the second fifo is private "rsh-fifo -R" fifo where it listen for rsh answers. The
names of fifos:
master: /tmp/rsh-<host>-<user>-in
frontend: /tmp/rsh-<host>-<user>-<pid>
Manual
~~~~~~
NAME
rsh-fifo -- persistent connection to remote shell
SYNOPSIS
rsh-fifo host [ -l username ] [ -C ] [ -D ] [ -R command ]
DESCRIPTION
rsh-fifo creates and uses persistent connection to remote host's rshd(8) for
multiple commands. Rsh-fifo works like standard rsh, but allows users to use one
connection for a lot of commands. This resolve a problem with rsh that uses
limited number of privileged TCP/IP ports. The limit of ports disable fre-
quented rsh usage in short time period.
The command rsh-fifo is not rsh client, but it’s wrapper that handle the
standard rsh command with shell as remote command. It means it's almost same
like "rsh foo.com bash". The initial command is $(SHELL) -- it expects that
your remote account has defined this environment variable. It's standard
variable and you probably needn't change something in your remote account
setting.
OPTIONS
rsh-fifo accepts options:
-l username
Set the log-in name on the remote host to username.
-C
creates new connection to rsh server.
-D
destroys connection to rsh server. It's same like "-R exit".
-R command
sends command to rsh server
EXAMPLE
$ rsh-fifo foo.com -l smith -C &
$ for x `seq 0 1000`; rsh-fifo foo.com -l smith -R ls; done
$ rsh-fifo foo.com -l smith -D
will send 1000 times 'ls' command to server foo.com.
SEE ALSO
rsh(1)
AUTHOR
Karel zak
kzak(-no-spam-at-)redhat.com
http://people.redhat.com/kzak/