home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / f / ftpbeta.zip / FTP.DOC next >
Text File  |  1992-11-20  |  4KB  |  108 lines

  1.  
  2.                               WATTCP FTP
  3.  
  4.                              Version 0.65
  5.  
  6.                      Erick Engelke and Dean Roth
  7.  
  8. Use:
  9.     FTP  [hostname]  [-f cmdfilename]  [portnumber]
  10.  
  11.     - if you include an optional hostname, FTP opens a connection to that host
  12.     - you can create a file of commands and automatically invoke that command
  13.       file by using the -f option (followed by a space) and the name of the
  14.       FTP command file.
  15.     - if you use an optional portnumber on the command line, FTP will use
  16.       that port number for all opens until you QUIT.  However, if you
  17.       specify a port number on a particular OPEN, that number will only
  18.       be used for that single session.
  19.  
  20. Script Files
  21.     Script files can be started from the command line by using the -f option,
  22.     or from the session prompt by enterring RUN scriptname
  23.  
  24.     The commands for a script file should be enterred just as you normally
  25.     would type them.  You can simply enter the userid and password on a
  26.     separate line as they answer the questions.
  27.  
  28.     eg. WATSUN.SCR                              This sample script waits until
  29.         wait 2:30                               2:30 am and then opens an
  30.         open watsun.cc.columbia.edu             ftp connection to watsun.
  31.         anonymous
  32.         joe@mechanical.watstar.uwaterloo.ca
  33.         cd msk
  34.         bget msn112.zip
  35.         quit
  36.  
  37.     Scripts support some handy features:
  38.  
  39.     WAIT      wait until a specified time before continuing.  This permits
  40.               scripts which wait until the dead of night before loading down
  41.               lines with data.  Wait uses 24 hour time.
  42.  
  43.     QUIET ON  stop printing script commands and some other messages
  44.     QUIET OFF return to normal 'noisy' operation
  45.  
  46.     ECHO      When used with QUIET commands, allows you to echo messages
  47.               to the screen.
  48.  
  49.     Any script line which begins with a '@' is not echoed to the screen.
  50.     So @QUIET ON will quietly turn the machine into quiet mode.  This is
  51.     kind of cheezy, but it fits in well with DOS.
  52.  
  53.     Scripts do not automatically log out when done, this allows you to
  54.     create a 'login' script to connect up to a machine and beep you, then
  55.     resume in command mode.  If you want to exit from the script, use the
  56.     QUIT command.  (Here the ^G is a control-G or ASCII BEL character.)
  57.  
  58.     eg. SUNEE.SCR
  59.         @OPEN sunee.uwaterloo.ca
  60.         anonymous
  61.         joe@gnat.uwaterloo.ca
  62.         echo ^GYou are connected to sunee!
  63.  
  64. Sample Script
  65.  
  66.         To invoke this script, use:
  67.         ftp -f ftp.cmd
  68.  
  69. Configuring:
  70.     You need a WATTCP configuration file called WATTCP.CFG.  If you have
  71.     one from other WATTCP applications, that will work.  Otherwise it
  72.     should look something like:
  73.  
  74.         # sample config file for all wattcp applications.  For more
  75.         # details, download sunee.uwaterloo.ca  pub/wattcp/apps.zip and
  76.         # read the info sheet
  77.  
  78.  
  79.         # set ip number
  80.         my_ip=129.97.176.99
  81.         # or for bootp set my_ip=bootp
  82.  
  83.         # set a non-zero network mask
  84.         netmask=255.255.254.0
  85.  
  86.         # enter one or more nameservers
  87.         nameserver=129.97.128.196
  88.         nameserver=129.97.128.189
  89.  
  90.         # enter one or more gateways
  91.         gateway=129.97.176.1
  92.         gateway=129.97.20.1
  93.  
  94.         # should have a domain list
  95.         domainslist="uwaterloo.ca"
  96.  
  97.         # optional inactive flag tells WATTCP to kill connection if nothing
  98.         # happens for a period of time in seconds
  99.         # eg. inactive=300    # 300 seconds or 5 minutes
  100.  
  101.         # define timeout for most things, like openning sessions
  102.         # defaults to 30 seconds
  103.         # eg. sockdelay=60    # extend it to one minute
  104.  
  105. Send bug notices to:
  106.  
  107. Erick@development.watstar.uwaterloo.ca
  108.