Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

enter image description here

share|improve this question

migrated from stackoverflow.com Jun 5 '13 at 14:15

This question came from our site for professional and enthusiast programmers.

    
What are you trying to do? –  PleaseStand Jun 5 '13 at 12:54
    
I think these programs require an underlying terminal to implement the local end of the protocol. The shell you use is irrelevant. –  chepner Jun 5 '13 at 13:40
    
For those (like me) who don't now immediately, what rz and sz is: Zmodem File Transfer (docstore.mik.ua/orelly/linux/run/apph_01.htm) –  mpy Jun 5 '13 at 14:20

1 Answer 1

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:

script: "zsend"

#!/bin/sh

DEV=/dev/ttyS0

stty -F $DEV 115200
sz $1 > $DEV < $DEV

script: "zrecv"

#!/bin/sh

DEV=/dev/ttyS0

stty -F $DEV 115200
rz > $DEV < $DEV

Usage Example:

  • Copy these scripts onto both PCs.
  • Alter the "DEV" variable in each script to match your PC's serial device name (eg, for USB-serial ports, it might be "/dev/ttyUSB0")
  • On PC1, type: sudo zsend filename
  • On PC2, type: sudo zrecv

That's worked out for me.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.