🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.software
Article #1678

Re: How do you download using (XYZ)MODEM protocol?

#1678
From: Dwight Everhart
Date: Tue, 05 Jan 1993 04:11
61 lines
2483 bytes
In article <C07ItC.9A6@griffin.cuc.ab.ca> davor@griffin.cuc.ab.ca (Davor  
Barcan) writes:
> Just add the following lines to your '.kermrc' file in your home directory.   
> You need the Zmodem package from Sonata.  Now, whenever I need to upload 
> using Zmodem, I do the following:
> 
> 	1) Exit into Kermit command mode (usually CTRL-] c)
> 	2) 'cd' to the directory of the file(s)
> 	3) Type 'sz files' or whatever files you want to send.
> 
> Use 'sz file(s)' for sending Zmodem, 'rz' for receiving Zmodem, 'sb
> file(s)' for sending Ymodem batch, 'rb' for receiving Ymodem batch, 'sx 
> file' for sending Xmodem, and 'rx file' for receiving Xmodem.
> 
> Now you have no reason not to use Kermit all the time.  My tip just 
> collects dust.
> 
> --- '.kermrc' cut here ---
> # Send & receive Xmodem, Ymodem, Zmodem macros
> 
> define sx -
> 	!sx < \v(line) > \v(line) \%1
> 
> define rx -
> 	!rx < \v(line) > \v(line) \%1
> 
> define sb -
> 	!sb < \v(line) > \v(line) \%1
> 
> define rb -
> 	!rb < \v(line) > \v(line) \%1
> 
> define sz -
> 	!sz < \v(line) > \v(line) \%1
> 
> define rz -
> 	!rz < \v(line) > \v(line) \%1
> --- '.kermrc' end --

You can also add the other argument numbers so you can send up to nine files  
(or wildcard patterns):

   define sz !sz -r \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 <\v(line) >\v(line)

If you give less then nine arguments, kermit only passes the ones you type.

You can also have kermit execute a command after the upload or download is  
finished.  For example, I have a simple program that beeps X times, where X  
is an argument.  So I have "sz" defined as:

   define sz !sz -r \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 <\v(line) >\v(line),
             !beep 5

(Newline added for clarity only.)  This way I can go into the next room and  
still know when the download is finished.

--
Dwight Everhart          "Spring will come for IBM when people
Houston, Texas            start buying big computers again."
biff@biff.gbdata.com      -- John Akers, CEO of IBM
NeXTMail and MIME OK     
Technical Details
Message-ID: <C0D4zv.1DF@biff.gbdata.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!sugar!tghost!unkaphaed!biff!biff
References: <C07ItC.9A6@griffin.cuc.ab.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!sugar!tghost!unkaphaed!biff!biff
From: biff@biff.gbdata.com (Dwight Everhart)
Newsgroups: comp.sys.next.software
Subject: Re: How do you download using  (XYZ)MODEM protocol?
Message-ID: <C0D4zv.1DF@biff.gbdata.com>
Date: Tue, 5 Jan 1993 04:11:54 GMT
References: <C07ItC.9A6@griffin.cuc.ab.ca>
Sender: biff@biff.gbdata.com (Dwight Everhart)
Lines: 61