zmodem

Date: Sun, 13 Dec 1998 12:33:06 -0400 (AST)
From: "Michael T. Smith" <michael@csuite.ns.ca>
To: csuite-dev@chebucto.ns.ca
Precedence: bulk
Return-Path: <csuite-dev-mml-owner@chebucto.ns.ca>

next message in archive
next message in thread
previous message in archive
previous message in thread
Index of Subjects

Index of Subjects
On Sun, 13 Dec 1998, John Nemeth wrote:

>      Apparently, CCN uses two different scripts to invoke zmodem (one
> being for telnet users).  Would it be possible to get those scripts?
> I'm still having lots of trouble with zmodem.  All of my users dial
> into a terminal server, which means that effectively they are all
> telnet users.

Here's a diff -u of CS_ROOT/bin/sz2 and CS_ROOT/bin/sz2telnet:

--- sz2    Sun Oct 11 01:11:33 1998
+++ sz2telnet   Sun Oct 11 01:13:10 1998
@@ -15,7 +15,7 @@
 PATH=/opt/bin:/usr/local/bin:/local/bin:/usr/bin:/bin ; export PATH
 
 if [ "$1" = "$2" ] || [ -f "$2" ]; then
-       sz -r "$2"
+       sz -e -r "$2"
 else
        if [ -h "$2" ]; then
                if ls -l "$2" | grep '/tmp/L[0-9][0-9]*.html' >/dev/null
@@ -31,5 +31,6 @@
                        exit 1
                fi
        fi
-       ln -s "$1" "$2" && trap 'rm -f "$2" ; exit 1' 0 1 2 3 && sz -r "$2"
+       ln -s "$1" "$2" && trap 'rm -f "$2" ; exit 1' 0 1 2 3 && sz -e -r "$2"
+       rm -f "$2"
 fi


--- rz2 Wed Oct  7 15:55:18 1998
+++ rz2telnet   Wed Oct  7 15:56:36 1998
@@ -15,4 +15,5 @@
 
 cd "$dir"
 
-lrz
+lrz -e
+


We had to use lrz (Linux zmodem) compiled for Solaris because the standard
rz doesn't support -e to escape high bits. I don't think we needed any
special compilation options.


Then in CS_ROOT/etc/lynx.cfg, add something like this:

DOWNLOADER:Use Zmodem to send to your computer:/csuite/bin/sz2 %s %s:FALSE
DOWNLOADER:Use Zmodem to send to your computer (over telnet):/csuite/bin/sz2telnet %s %s:FALSE

UPLOADER:Using Zmodem:/csuite/bin/rz2 %s:FALSE
UPLOADER:Using Zmodem (over telnet):/csuite/bin/rz2telnet %s:FALSE


Hope this helps.

next message in archive
next message in thread
previous message in archive
previous message in thread
Index of Subjects