home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.misc
- 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
- From: franklin@ug.cs.dal.ca (Steve Franklin)
- Subject: Re: Shameless port of someone's FTP script (umich)
- Message-ID: <By2pKK.KLD@cs.dal.ca>
- Sender: usenet@cs.dal.ca (USENET News)
- Nntp-Posting-Host: ug2.cs.dal.ca
- Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
- References: <By2ot7.K9s@cs.dal.ca>
- Date: Sat, 21 Nov 1992 15:55:32 GMT
- Lines: 188
-
- Okay, so I found a bug in my script already... Sue me - this is why
- I'd like your feedback if any of you actually use it. I'm sure typos
- abound... I only use certain directories, and rarely divvy into the
- "med" sections...
- Sorry...
-
- In <By2ot7.K9s@cs.dal.ca> some cool guy writes:
-
- >I use this all of the time... I thought you guys would get a kick out of
- >this. I got the idea from a fine fellow's script for garbo for DOS (yechhh).
- >here's how you use it:
- > Call the script mftp,then:
- >mftp (directory) filename
-
- >or, just the first portion of the filename...
- > Wanna example? Okay, try this... First of all, if you picked up the file
- >of the NEWFILES at mac.archive, you'll see something like this:
-
- >/mac/misc/documentation/startupscreendeskpictfaq.txt
- > (big fancy description)
-
- >So, just type:
- >mftp documentation startupscreen
- >and it will pick up antything in the documentation dir that begins with
- >startupscreen in a background ftp process...
- > Hmm, "neat" you say, but you want more?
- >Well, I have a second script that makes it TOTALLY silent, and quiet...
- >It's called... "macftp"
- >I'll show you it first, since it is short...
-
- >#!/bin/sh
- >/pub/bin/mftp $1 $2 2> /dev/null > /dev/null &
-
- >This just makes sure all garbage and text goes to the trash, and it sends
- >it into the background quietly...
- > Anyways, here's the script: If you like it - give me a shout. This was a
- >pain in the butt goin through all the directories... if you find a mistake,
- >give me a shout. if you think I'm a jerk for wasting you time, give me a
- >shout too. Anyways, here it is:
-
- #!/bin/sh
-
- host=mac.archive.umich.edu
- directory=/mac
-
-
- if [ $# -lt 2 ]
- then
- echo "Usage: $0 directoryA file1 file2 ... directoryB file3 file4 ..."
- echo "Example: $0 pd2 moder16.zip ts tsfaq30.zip"
- exit 1
- else
-
- (
- echo user anonymous -$USER@$host
- echo hash
- echo binary
- echo prompt
- echo cd $directory
- while test -n "$1"
- do
- case $1 in
- aninmation) echo cd .. ; echo cd animation;;
- ###########################
- development) echo cd development;;
- game) echo cd game;;
- graphics) echo cd graphics;;
- hypercard) echo cd hypercard;;
- incoming) echo cd incoming;;
- misc) echo cd misc;;
- sound) echo cd sound;;
- extensions) echo cd system.extensions;;
- util) echo cd util;;
- ###########################
- apple) echo cd development; echo cd apple;;
- languages) echo cd development; echo cd languages;;
- libraries) echo cd development; echo cd libraries;;
- defproc) echo cd development; echo cd defproc;;
- humaninterface) echo cd development; echo cd humaninterface;;
- pressrelease) echo cd development; echo cd pressrelease;;
- sc.notes) echo cd development; echo cd sc.notes;;
- stack) echo cd development; echo cd stack;;
- ###game
- adventure) echo cd game; echo cd adventure;;
- arcade) echo cd game; echo cd arcade;;
- card) echo cd game; echo cd card;;
- demo) echo cd game; echo cd demo;;
- gameutil) echo cd game; echo cd gameutil;;
- space) echo cd game; echo cd space;;
- war) echo cd game; echo cd war;;
- ###graphics
- draw) echo cd graphics; echo cd draw;;
- eps) echo cd graphics; echo cd eps;;
- fractal) echo cd graphics; echo cd fractal;;
- gif) echo cd graphics; echo cd gif;;
- graphicsutil) echo cd graphics; echo cd graphicsutil;;
- paint) echo cd graphics; echo cd paint;;
- quicktime) echo cd graphics; echo cd quicktime;;
- ###hypercard
- education) echo cd hypercard; echo cd education;;
- fun) echo cd hypercard; echo cd fun;;
- game) echo cd hypercard; echo cd game;;
- hamradio) echo cd hypercard; echo cd hamradio;;
- hypercardutil) echo cd hypercard; echo cd hypercardutil;;
- mactool) echo cd hypercard; echo cd mactool;;
- organization) echo cd hypercard; echo cd organization;;
- science) echo cd hypercard; echo cd science;;
- xcmd) echo cd hypercard; echo cd xcmd;;
- xfcn) echo cd hypercard; echo cd xfcn;;
- ###misc
- astronomy) echo cd misc; echo cd astronomy;;
- biology) echo cd misc; echo cd biology;;
- chemistry) echo cd misc; echo cd chemistry;;
- compsci) echo cd misc; echo cd compsci;;
- documentation) echo cd misc; echo cd documentation;;
- foreignlang) echo cd misc; echo cd foreignlang;;
- math) echo cd misc; echo cd math;;
- medical) echo cd misc; echo cd medical;;
- tex) echo cd misc; echo cd text;;
- umichinfo) echo cd misc; echo cd umichinfo;;
- umichlicensed) echo cd misc; echo cd umichlicensed;;
- update) echo cd misc; echo cd update;;
- #################
- art) echo cd art;;
- demo) echo cd demo;;
- education) echo cd education;;
- hypercard) echo cd hypercard;;
- text) echo cd text;;
- util) echo cd util;;
- ###sound
- midi) echo cd sound; echo cd midi;;
- sounds) echo cd sound; echo cd sounds;;
- soundutil) echo cd sound; echo cd soundutil;;
- ###system.extensions
- cdev) echo cd system.extensions; echo cd cdev;;
- chooser) echo cd system.extensions; echo cd chooser;;
- commtoolbox) echo cd system.extensions; echo cd commtoolbox;;
- da) echo cd system.extensions; echo cd da;;
- init) echo cd system.extensions; echo cd init;;
- fkey) echo cd system.extensions; echo cd fkey;;
- font) echo cd system.extensions; echo cd font;;
- bitmap) echo cd system.extensions; echo cd font; echo cd bitmap;;
- type1) echo cd system.extensions; echo cd font; echo cd type1;;
- type3) echo cd system.extensions; echo cd font; echo cd type3;;
- ###utils
- compression) echo cd util; echo cd compression;;
- editor) echo cd util; echo cd editor;;
- encryption) echo cd util; echo cd encryption;;
- font) echo cd util; echo cd font;;
- multifinder) echo cd util; echo cd multifinder;;
- network) echo cd util; echo cd network;;
- powerbook) echo cd util; echo cd powerbook;;
- print) echo cd util; echo cd print;;
- science) echo cd util; echo cd science;;
- screensaver) echo cd util; echo cd screensaver;;
- trashcan) echo cd util; echo cd trashcan;;
- unix) echo cd util; echo cd unix;;
- virus) echo cd util; echo cd virux;;
-
- *.*) echo cd $1;;
- esac
- echo mget $2*
- echo pwd
- shift
- done
- echo bye
-
- ) | ftp -n -v $host
-
- fi
-
- # secondary author steve franklin (franklin@ug.cs.dal.ca)
- # original author unknown but appreciated
- # Keep this tagged at end of script so you can mail me if you find
- # a typo...
-
- >--
- >aasdSteveFranklin-Subliminal Psychology Major.ks;dlasBlueJaysRULEkasdfeahsdbfl
- >sd;lfaswoq[eBuyMeAQuadra!!!mbnZMXCNdfsba;KdSPAMiuroqiyetIBMSuxiweuryth'ewr;mxn
- >qpuepriuPartyOneqtuj;,n.,xnc,kjasFlameMeNot!;lkj;lkgkjd;askElvisLivesjhfquweru
- >zx.cfranklin@ug.cs.dal.ca,sk;t;lrut[Superboy@ac.dal.cav.zx,Physics!eq3rwkh;oHA
-
- DAMN COOL SIG I SAY!!!!!!!!!!!!!!!!!!!!!
- --
- aasdSteveFranklin-Subliminal Psychology Major.ks;dlasBlueJaysRULEkasdfeahsdbfl
- sd;lfaswoq[eBuyMeAQuadra!!!mbnZMXCNdfsba;KdSPAMiuroqiyetIBMSuxiweuryth'ewr;mxn
- qpuepriuPartyOneqtuj;,n.,xnc,kjasFlameMeNot!;lkj;lkgkjd;askElvisLivesjhfquweru
- zx.cfranklin@ug.cs.dal.ca,sk;t;lrut[Superboy@ac.dal.cav.zx,Physics!eq3rwkh;oHA
-