<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Fri, 27 Jan 1984 03:33:00 EST
From   : Herb Lin <LIN@mit-mc>
Subject: multiple FTP gets from SIMTEL20 for CPM stuff..

    From: STEVEH @ MIT-MC

    Is there any method that can be used, while FTPing, that allows
    one to not have to keep repeating MICRO:<CPM.xxxx> 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:<CPM.xxxx>; 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:<CPM.filutl>   <- this is the command I issued
List started.           <- this is what FTP tells me.
micro:<CPM.filutl>        <- 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:<cpm.filutl>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:<cpm.filtul>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...
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>