rzh - Receive ZMODEM Here
rzh [-i|-q] [directory]
To transfer the /etc/hosts file on tt.asplode.com to the current directory:
$ rzh
$ ssh www.asplode.com
$ sz /etc/hosts
173 bytes sent in 0.3 seconds.
$ exit # exits the ssh session
$ exit # exits the rzh session
rzh forks itself ot the background and handles any zmodem transfer requests that it sees coming over the wire. is often easier than using scp or sftp. It can also be useful for copying files on the local machine.
Specify the directory that you'd like to receive files to on the command line. If no directory is supplied, the current directory is used.
- -i --info
-
Prints a brief message telling if rzh is currently running on the local shell.
- -q --quiet
-
Suppresses the printing of status messages. Error messages are still printed to stderr.
- -h --help
-
Output a quick usage summary.
- -V --version
-
Prints the version and exits.
- --rz
-
Specifies the location and arguments for the rz program. By default rzh receives files using "/usr/bin/rz" with no arguments.
You must specify the full path to the executable -- rzh doesn't use the PATH variable. Also, rzh doesn't currently support quoting or backslashing in the argument list (see BUGS).
# rz normally skips duplicate files. This will cause rz # to overwrite them instead. rzh --rz='/usr/bin/rz -y' # put this in your .bashrc to disable timeouts # (remember to disable timeouts when running sz as well) alias rzh="rzh --rz='/usr/bin/rz --no-timeout'"
rzh reads keyboard input while a transfer is going on. Here are the keys that it recognizes:
- ESC ^C q Q
-
Cancels the current transfer.
- SHELL
-
Specifies the shell that rzh should use.
- RZHDIR
-
If you're currently running rzh, this specifies the full path to the download directory.
rzh suffers from all rz/sz bugs. For instance, with lrzsz, try calling sz with an invalid filename. Sometimes it will print an error, sometimes it will hang. There's not much rzh can do about this.
rzh doesn't support quoting within --rz and --shell. For instance, --rz='/bin/cmd --prompt="a b"' will cause rzh to call /bin/cmd with two arguments '"a', and 'b"'.
- Scott Bronson <bronson@rinspin.com>