home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / misc / 19487 < prev    next >
Encoding:
Text File  |  1992-11-21  |  7.3 KB  |  201 lines

  1. Newsgroups: comp.sys.mac.misc
  2. Path: sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!uwm.edu!linac!att!news.cs.indiana.edu!nstn.ns.ca!cs.dal.ca!ug.cs.dal.ca!franklin
  3. From: franklin@ug.cs.dal.ca (Steve Franklin)
  4. Subject: Re: Shameless port of someone's FTP script (umich)
  5. Message-ID: <By2pKK.KLD@cs.dal.ca>
  6. Sender: usenet@cs.dal.ca (USENET News)
  7. Nntp-Posting-Host: ug2.cs.dal.ca
  8. Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
  9. References: <By2ot7.K9s@cs.dal.ca>
  10. Date: Sat, 21 Nov 1992 15:55:32 GMT
  11. Lines: 188
  12.  
  13. Okay, so I found a bug in my script already... Sue me - this is why
  14. I'd like your feedback if any of you actually use it. I'm sure typos
  15. abound... I only use certain directories, and rarely divvy into the
  16. "med" sections...
  17.    Sorry...
  18.  
  19. In <By2ot7.K9s@cs.dal.ca> some cool guy writes:
  20.  
  21. >I use this all of the time... I thought you guys would get a kick out of
  22. >this. I got the idea from a fine fellow's script for garbo for DOS (yechhh).
  23. >here's how you use it:
  24. >   Call the script mftp,then:
  25. >mftp (directory) filename
  26.  
  27. >or, just the first portion of the filename...
  28. >   Wanna example? Okay, try this... First of all, if you picked up the file
  29. >of the NEWFILES at mac.archive, you'll see something like this:
  30.  
  31. >/mac/misc/documentation/startupscreendeskpictfaq.txt
  32. >     (big fancy description)
  33.  
  34. >So, just type:
  35. >mftp documentation startupscreen
  36. >and it will pick up antything in the documentation dir that begins with
  37. >startupscreen in a background ftp process...
  38. >   Hmm, "neat" you say, but you want more?
  39. >Well, I have a second script that makes it TOTALLY silent, and quiet...
  40. >It's called... "macftp"
  41. >I'll show you it first, since it is short...
  42.  
  43. >#!/bin/sh
  44. >/pub/bin/mftp $1 $2 2> /dev/null > /dev/null &
  45.  
  46. >This just makes sure all garbage and text goes to the trash, and it sends
  47. >it into the background quietly...
  48. >   Anyways, here's the script: If you like it - give me a shout. This was a
  49. >pain in the butt goin through all the directories... if you find a mistake,
  50. >give me a shout. if you think I'm a jerk for wasting you time, give me a
  51. >shout too. Anyways, here it is:
  52.  
  53. #!/bin/sh
  54.  
  55. host=mac.archive.umich.edu
  56. directory=/mac
  57.  
  58.  
  59. if [ $# -lt 2 ]
  60. then
  61.     echo "Usage: $0 directoryA file1 file2 ... directoryB file3 file4 ..."
  62.         echo "Example: $0 pd2 moder16.zip  ts tsfaq30.zip"
  63.     exit 1
  64. else
  65.  
  66. (
  67.     echo user anonymous -$USER@$host
  68.     echo hash
  69.     echo binary
  70.     echo prompt
  71.     echo cd $directory
  72. while test -n "$1"
  73. do
  74.    case $1 in
  75.     aninmation)     echo cd .. ; echo cd animation;;
  76. ###########################
  77. development)        echo cd development;;
  78. game)                    echo cd game;;
  79. graphics)            echo cd graphics;;
  80. hypercard)            echo cd hypercard;;
  81. incoming)            echo cd incoming;;
  82. misc)                    echo cd misc;;
  83. sound)                echo cd sound;;
  84. extensions)            echo cd system.extensions;;
  85. util)                    echo cd util;;
  86. ###########################
  87. apple)                echo cd development; echo cd apple;;
  88. languages)            echo cd development; echo cd languages;;
  89. libraries)            echo cd development; echo cd libraries;;
  90. defproc)                echo cd development; echo cd defproc;;
  91. humaninterface)    echo cd development; echo cd humaninterface;;
  92. pressrelease)        echo cd development; echo cd pressrelease;;
  93. sc.notes)            echo cd development; echo cd sc.notes;;
  94. stack)                echo cd development; echo cd stack;;
  95. ###game
  96. adventure)            echo cd game; echo cd adventure;;
  97. arcade)                echo cd game; echo cd arcade;;
  98. card)                    echo cd game; echo cd card;;
  99. demo)                    echo cd game; echo cd demo;;
  100. gameutil)            echo cd game; echo cd gameutil;;
  101. space)                echo cd game; echo cd space;;
  102. war)                    echo cd game; echo cd war;;
  103. ###graphics
  104. draw)                    echo cd graphics; echo cd draw;;
  105. eps)                    echo cd graphics; echo cd eps;;
  106. fractal)                echo cd graphics; echo cd fractal;;
  107. gif)                    echo cd graphics; echo cd gif;;
  108. graphicsutil)         echo cd graphics; echo cd graphicsutil;;
  109. paint)                echo cd graphics; echo cd paint;;
  110. quicktime)            echo cd graphics; echo cd quicktime;;
  111. ###hypercard
  112. education)            echo cd hypercard; echo cd education;;
  113. fun)                    echo cd hypercard; echo cd fun;;
  114. game)                    echo cd hypercard; echo cd game;;
  115. hamradio)            echo cd hypercard; echo cd hamradio;;
  116. hypercardutil)        echo cd hypercard; echo cd hypercardutil;;
  117. mactool)                echo cd hypercard; echo cd mactool;;
  118. organization)        echo cd hypercard; echo cd organization;;
  119. science)                echo cd hypercard; echo cd science;;
  120. xcmd)                    echo cd hypercard; echo cd xcmd;;
  121. xfcn)                    echo cd hypercard; echo cd xfcn;;
  122. ###misc
  123. astronomy)            echo cd misc; echo cd astronomy;;
  124. biology)                echo cd misc; echo cd biology;;
  125. chemistry)            echo cd misc; echo cd chemistry;;
  126. compsci)                echo cd misc; echo cd compsci;;
  127. documentation)        echo cd misc; echo cd documentation;;
  128. foreignlang)        echo cd misc; echo cd foreignlang;;
  129. math)                    echo cd misc; echo cd math;;
  130. medical)                echo cd misc; echo cd medical;;
  131. tex)                    echo cd misc; echo cd text;;
  132. umichinfo)            echo cd misc; echo cd umichinfo;;
  133. umichlicensed)        echo cd misc; echo cd umichlicensed;;
  134. update)                echo cd misc; echo cd update;;
  135. #################
  136. art)                    echo cd art;;
  137. demo)                    echo cd demo;;
  138. education)            echo cd education;;
  139. hypercard)            echo cd hypercard;;
  140. text)                    echo cd text;;
  141. util)                    echo cd util;;
  142. ###sound
  143. midi)                    echo cd sound; echo cd midi;;
  144. sounds)                echo cd sound; echo cd sounds;;
  145. soundutil)            echo cd sound; echo cd soundutil;;
  146. ###system.extensions
  147. cdev)                    echo cd system.extensions; echo cd cdev;;
  148. chooser)                echo cd system.extensions; echo cd chooser;;
  149. commtoolbox)        echo cd system.extensions; echo cd commtoolbox;;
  150. da)                    echo cd system.extensions; echo cd da;;
  151. init)                     echo cd system.extensions; echo cd init;;
  152. fkey)                    echo cd system.extensions; echo cd fkey;;
  153. font)                    echo cd system.extensions; echo cd font;;
  154. bitmap)                echo cd system.extensions; echo cd font; echo cd bitmap;;
  155. type1)                 echo cd system.extensions; echo cd font; echo cd type1;;
  156. type3)                echo cd system.extensions; echo cd font; echo cd type3;;
  157. ###utils
  158. compression)        echo cd util; echo cd compression;;
  159. editor)                echo cd util; echo cd editor;;
  160. encryption)            echo cd util; echo cd encryption;;
  161. font)                    echo cd util; echo cd font;;
  162. multifinder)        echo cd util; echo cd multifinder;;
  163. network)                echo cd util; echo cd network;;
  164. powerbook)            echo cd util; echo cd powerbook;;
  165. print)                echo cd util; echo cd print;;
  166. science)                echo cd util; echo cd science;;
  167. screensaver)        echo cd util; echo cd screensaver;;
  168. trashcan)            echo cd util; echo cd trashcan;;
  169. unix)                    echo cd util; echo cd unix;;
  170. virus)                echo cd util; echo cd virux;;
  171.  
  172.     *.*)        echo cd $1;;
  173.       esac
  174. echo mget $2*
  175. echo pwd
  176. shift
  177. done
  178.     echo bye
  179.  
  180. ) | ftp -n -v $host 
  181.  
  182. fi
  183.  
  184. # secondary author steve franklin (franklin@ug.cs.dal.ca)
  185. # original author unknown but appreciated
  186. # Keep this tagged at end of script so you can mail me if you find
  187. # a typo...
  188.  
  189. >-- 
  190. >aasdSteveFranklin-Subliminal Psychology Major.ks;dlasBlueJaysRULEkasdfeahsdbfl
  191. >sd;lfaswoq[eBuyMeAQuadra!!!mbnZMXCNdfsba;KdSPAMiuroqiyetIBMSuxiweuryth'ewr;mxn
  192. >qpuepriuPartyOneqtuj;,n.,xnc,kjasFlameMeNot!;lkj;lkgkjd;askElvisLivesjhfquweru
  193. >zx.cfranklin@ug.cs.dal.ca,sk;t;lrut[Superboy@ac.dal.cav.zx,Physics!eq3rwkh;oHA
  194.  
  195. DAMN COOL SIG I SAY!!!!!!!!!!!!!!!!!!!!!
  196. -- 
  197. aasdSteveFranklin-Subliminal Psychology Major.ks;dlasBlueJaysRULEkasdfeahsdbfl
  198. sd;lfaswoq[eBuyMeAQuadra!!!mbnZMXCNdfsba;KdSPAMiuroqiyetIBMSuxiweuryth'ewr;mxn
  199. qpuepriuPartyOneqtuj;,n.,xnc,kjasFlameMeNot!;lkj;lkgkjd;askElvisLivesjhfquweru
  200. zx.cfranklin@ug.cs.dal.ca,sk;t;lrut[Superboy@ac.dal.cav.zx,Physics!eq3rwkh;oHA
  201.