Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!floyd!harpo!seismo!hao!hplabs!sri-unix!cpmlist@brl-vgr From: cpmlist%brl-vgr@sri-unix.UUCP Newsgroups: net.micro.cpm Subject: [Stephen C. Hill: Stickyfying SIMTEL20] Message-ID: <16030@sri-arpa.UUCP> Date: Thu, 26-Jan-84 17:00:39 EST Article-I.D.: sri-arpa.16030 Posted: Thu Jan 26 17:00:39 1984 Date-Received: Sun, 5-Feb-84 13:28:26 EST Lines: 48 From: Dave Towson (info-cpm) I thought this was of sufficiently general interest to pass along to the list. ----- Forwarded message # 1: Received: From Mit-Mc.ARPA by BRL-VGR via smtp; 25 Jan 84 22:31 EST Date: 25 January 1984 22:32 EST From: Stephen C. Hill Subject: Stickyfying SIMTEL20 To: info-cpm-request @ BRL-VGR cc: STEVEH @ MIT-MC Is there any method that can be used, while FTPing, that allows one to not have to keep repeating MICRO: every time that you GET a file or get a DIRectory listing? ----- End of forwarded messages Steve - Here at Aberdeen Proving Ground, we are running a lot of UNIX systems. This includes the machine from which info-cpm is distributed. UNIX allows for command-language programs, or shell-scripts, and we have used this feature to good advantage in making the job of FTPing much simpler. At present, this system of programs is rather klugey, being composed of many bits and pieces that all have to be available for the whole thing to work. But work it does. If I type the command line "cpmug 029 sap.asm" it automatically calls simtel20 and moves the file "micro:sap.asm" to a file having the name "sap.asm" in the calling directory. Using the editor, I can create a shell-script with entries on separate lines having the form "x program.name", and then use the search-and-replace feature of the editor to substitute the string "cpmug 029" (adjust for different volume number) in place of "x". That's fairly quick and easy to do. Then if I mark the file just created as executable, I can run it and move a whole batch of stuff automatically. The main file-mover portion of this kluge was written by Fred Brundick . It creates command strings which are fed to FTP. It uses several "subroutines", which are in separate files. I've never added-up the number of different files that must be present to make what I've just described work, but it could easily be ten or so. It's a real lashup - but it WORKS! Fred is planning to make a nice civilized, all-in-one-hunk version someday, but it is now on the stack. Other than this sort of approach, I don't know of any way to reduce the typing involved in moving a bunch of files via FTP. Dave