Anyone knowns how to use rz and sz under linux shell?
I can use it under sercurecrt, but not ubuntu shell.
Here is the screenshot.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Ah, perhaps by typing the "rz" command at the console, perhaps you were trying to transfer a file via zmodem between two pc's directly from the console via a cross-over serial cable?
I've currently been trying to figure something like this out for myself, so will share what I've got, in-case it's what you were after.
I made two little scripts to help out:
#!/bin/sh DEV=/dev/ttyS0 stty -F $DEV 115200 sz $1 > $DEV < $DEV
#!/bin/sh DEV=/dev/ttyS0 stty -F $DEV 115200 rz > $DEV < $DEV
That's worked out for me.
Get to know GNU Screen.
1.install GNU Screen
2.configure Screen by creating a .screenrc file in the root directory.
Write 'zmodem catch' into the .screenrc file.
(1) Send a file from the remote host to the local host:
execute sz FILE from the command line
hit when Screen brings up the default receive command
(2) Send a file from the local host to the remote host
execute rz from the command line
add local filename when Screen brings up the default send command, then hit