[sz,rz]使用sz/rz在两台Linux设备之间传输数据

转自https://superuser.com/questions/604055/using-rz-and-sz-under-linux-shell

zsend

#!/bin/sh

DEV=/dev/ttyS0

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

zrecv

#!/bin/sh

DEV=/dev/ttyS0

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

PC1: sudo zsend filename

PC2: sudo zrecv

posted @ 2017-10-10 17:23  aaronGao  阅读(732)  评论(0编辑  收藏  举报