home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / software / 3280 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  2.4 KB

  1. Path: sparky!uunet!psinntp!sugar!tghost!unkaphaed!biff!biff
  2. From: biff@biff.gbdata.com (Dwight Everhart)
  3. Newsgroups: comp.sys.next.software
  4. Subject: Re: How do you download using  (XYZ)MODEM protocol?
  5. Message-ID: <C0D4zv.1DF@biff.gbdata.com>
  6. Date: Tue, 5 Jan 1993 04:11:54 GMT
  7. References: <C07ItC.9A6@griffin.cuc.ab.ca>
  8. Sender: biff@biff.gbdata.com (Dwight Everhart)
  9. Lines: 61
  10.  
  11. In article <C07ItC.9A6@griffin.cuc.ab.ca> davor@griffin.cuc.ab.ca (Davor  
  12. Barcan) writes:
  13. > Just add the following lines to your '.kermrc' file in your home directory.   
  14. > You need the Zmodem package from Sonata.  Now, whenever I need to upload 
  15. > using Zmodem, I do the following:
  16. >     1) Exit into Kermit command mode (usually CTRL-] c)
  17. >     2) 'cd' to the directory of the file(s)
  18. >     3) Type 'sz files' or whatever files you want to send.
  19. > Use 'sz file(s)' for sending Zmodem, 'rz' for receiving Zmodem, 'sb
  20. > file(s)' for sending Ymodem batch, 'rb' for receiving Ymodem batch, 'sx 
  21. > file' for sending Xmodem, and 'rx file' for receiving Xmodem.
  22. > Now you have no reason not to use Kermit all the time.  My tip just 
  23. > collects dust.
  24. > --- '.kermrc' cut here ---
  25. > # Send & receive Xmodem, Ymodem, Zmodem macros
  26. > define sx -
  27. >     !sx < \v(line) > \v(line) \%1
  28. > define rx -
  29. >     !rx < \v(line) > \v(line) \%1
  30. > define sb -
  31. >     !sb < \v(line) > \v(line) \%1
  32. > define rb -
  33. >     !rb < \v(line) > \v(line) \%1
  34. > define sz -
  35. >     !sz < \v(line) > \v(line) \%1
  36. > define rz -
  37. >     !rz < \v(line) > \v(line) \%1
  38. > --- '.kermrc' end --
  39.  
  40. You can also add the other argument numbers so you can send up to nine files  
  41. (or wildcard patterns):
  42.  
  43.    define sz !sz -r \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 <\v(line) >\v(line)
  44.  
  45. If you give less then nine arguments, kermit only passes the ones you type.
  46.  
  47. You can also have kermit execute a command after the upload or download is  
  48. finished.  For example, I have a simple program that beeps X times, where X  
  49. is an argument.  So I have "sz" defined as:
  50.  
  51.    define sz !sz -r \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 <\v(line) >\v(line),
  52.              !beep 5
  53.  
  54. (Newline added for clarity only.)  This way I can go into the next room and  
  55. still know when the download is finished.
  56.  
  57. --
  58. Dwight Everhart          "Spring will come for IBM when people
  59. Houston, Texas            start buying big computers again."
  60. biff@biff.gbdata.com      -- John Akers, CEO of IBM
  61. NeXTMail and MIME OK     
  62.