Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!seismo!hao!hplabs!sri-unix!LIN@mit-mc From: LIN%mit-mc@sri-unix.UUCP Newsgroups: net.micro.cpm Subject: multiple FTP gets from SIMTEL20 for CPM stuff.. Message-ID: <16041@sri-arpa.UUCP> Date: Fri, 27-Jan-84 03:33:00 EST Article-I.D.: sri-arpa.16041 Posted: Fri Jan 27 03:33:00 1984 Date-Received: Sun, 29-Jan-84 01:04:44 EST Lines: 57 From: Herb Lin From: 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? The way I automate this process is the following: 1. give FTP the SCRIPT command; this files away the terminal output into a file of your choosing. Call this file FOO. 2. do DIR MICRO:; this produces a directory listing in FOO. 3. edit FOO using the keyboard macro facility in EMACS to give the appropriate lines. Example: FOO initially contains this: dir micro: <- this is the command I issued List started. <- this is what FTP tells me. micro: <- this is the name of the directory I asked about compare.asm.20 <- this is a file name in the directory. sortv.asm.3 <- this is a second file in the directory. edit this file to look like this: get mc:users2;COMP ASM <- get is the FTP command for getting a local file. MC:USERS2;COMP ASM is the file name for the file you want to get. micro:compare.asm.20 <- COMPARE.ASM is the file name you want to get. get mc:users2;SORT ASM <- this is the local file name. micro:sortv.asm.3 <- SORTV.ASM is the second file you want. The EMACS keyboard macro can be used to place the directory in front of every desired file, and also to build the local file name from the desired file name. For example, on MC you can take the first six characters of the first filename on SIMTEL and the last three characters of the file type on SIMTEL. Save the resulting file as BAR (For example) 4. LAST STEP. issue to FTP the XFILE command. This command takes a command file and executes the contents just as though they were typed in at the keyboard. lemme know if I can help more. Now, if only some version of MODEM would allow taking of files received from a mainframe to a micro froma from a command file...