Subject: Re: Piping to Zmodem

From: Mike Jagdis <[email-masked]>
Date: Tue, 5 Dec 1995 09:43:37 GMT

>I tried piping directly to the 'sz' command,
>but it was not happy.  Has anyone figured out a way to download a single
>message directly from the viewer without having to go through an external
>file first?

The versions of sz I have don't handle piped data either. But you can
do it with a little script:

	#!/bin/sh
	umask 066
	trap "rm -f /tmp/$$junk" 0
	cat > /tmp/$$junk
	sz /tmp/$$junk

Call it send or zap or download or whatever. You might prefer to create
a temporary directory and use a more meaningful filename in it since
Zmodem will propogate the filename to your local machine.

				Mike

-- 
Here is wisdom. Let him that hath understanding count the number
of the beast: for it is the number of a man; and his number is

        Voice: +44 1734 890403     Fax: +44 1734 891192

---

From: Paul O Bartlett <[email-masked]>
Date: Mon, 4 Dec 1995 11:43:06 -0500

Sometimes when I read an email, either in my spool inbox or in one of
the incoming mail folders set up by procmail, I would like to download it
directly to my PC with Zmodem.  So far, I have to export it first to an
external file and then download that.  I am using Pine 3.91 on SunOS 4.1.4
with Unix piping enabled.  I tried piping directly to the 'sz' command,
but it was not happy.  Has anyone figured out a way to download a single
message directly from the viewer without having to go through an external
file first?  Thanks.  (P.S.  My telecomm software is ProComm Plus v2/DOS.)

Paul
--------------------------------------------------
Paul O. Bartlett         <[email-masked]>
P. O. Box 857     Vienna, VA 22183-0857     U.S.A.
Finger, keyserver, or WWW for PGP 2.6.2 public key
     URL: http://www.access.digex.net/~pobart     
--------------------------------------------------