home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / ncftp19.zip / ncftp.txt < prev    next >
Text File  |  1999-08-29  |  38KB  |  1,056 lines

  1.  
  2.  
  3.  
  4. ncftp(1)                                                 ncftp(1)
  5.  
  6.  
  7. NAME
  8.        ncftp - Browser program for the File Transfer Protocol
  9.  
  10. SYNOPSIS
  11.        ncftp [host]
  12.  
  13.        ncftp [ftp://host.name/directory/]
  14.  
  15. DESCRIPTION
  16.        The purpose of ncftp is to provide a powerful and flexible
  17.        interface to the Internet standard File Transfer Protocol.
  18.        It is intended to replace the stock ftp program that comes
  19.        with the system.
  20.  
  21.        Although the program appears to be rather spartan,  you'll
  22.        find  that  ncftp has a wealth of valuable performance and
  23.        usage features.  The program was designed with an emphasis
  24.        on  usability, and it does as much as it can for you auto-
  25.        matically so you can do what you expect to do with a  file
  26.        transfer  program,  which  is  transfer  files between two
  27.        interconnected systems.
  28.  
  29.        Some of the cooler features include progress meters, file-
  30.        name completion, command-line editing, background process-
  31.        ing, auto-resume downloads, bookmarking, cached  directory
  32.        listings, host redialing, working with firewalls and prox-
  33.        ies, downloading entire directory trees, etc., etc.
  34.  
  35.        The ncftp distribution comes with the useful utility  pro-
  36.        grams  ncftpget(1)  and ncftpput(1) which were designed to
  37.        do command-line FTP.  In particular, they are  very  handy
  38.        for  shell  scripts.  This version of ncftp no longer does
  39.        command-line FTP, since the main ncftp program is more  of
  40.        a browser-type program.
  41.  
  42.    INTRODUCTION TO THE COMMAND SHELL
  43.        Upon  running  the  program  you  are  presented a command
  44.        prompt where you type commands  to  the  program's  shell.
  45.        Usually  you  will  want  to  open  a remote filesystem to
  46.        transfer files to and from your local  machine's  filesys-
  47.        tem.   To  do  that, you need to know the symbolic name of
  48.        the remote system, or its Internet Protocol (IP)  address.
  49.        For example, a symbolic name might be ``typhoon.unl.edu,''
  50.        and its IP address could be ``129.93.33.24.''  To  open  a
  51.        connection to that system, you use the program's open com-
  52.        mand:
  53.  
  54.             open typhoon.unl.edu
  55.             open 129.93.33.24
  56.  
  57.        Both of these try to open the machine  called  typhoon  at
  58.        the  University  of  Nebraska.  Using the symbolic name is
  59.        the preferred way, because IP addresses may change without
  60.        notice, while the symbolic names usually stay the same.
  61.  
  62.  
  63.  
  64.                             NCEMRSoft                           1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ncftp(1)                                                 ncftp(1)
  71.  
  72.  
  73.        When  you  open a remote filesystem, you need to have per-
  74.        mission.  The FTP Protocol's authentication system is very
  75.        similar  to  that of logging in to your account.  You have
  76.        to give an account name, and its password  for  access  to
  77.        that  account's  files.  However, most remote systems that
  78.        have anything you might be interested in don't require  an
  79.        account  name for use.  You can often get anonymous access
  80.        to a remote filesystem and exchange files that  have  been
  81.        made  publicly  accessible.   The  program attempts to get
  82.        anonymous permission to a remote system by default.   What
  83.        actually happens is that the program tries to use ``anony-
  84.        mous'' as the account name, and when prompted for a  pass-
  85.        word, uses your E-mail address as a courtesy to the remote
  86.        system's maintainer.  You can have the program try to  use
  87.        a specific account also.  That will be explained later.
  88.  
  89.        After  the  open  command  completes successfully, you are
  90.        connected to the remote system and logged in.  You  should
  91.        now  see  the command prompt change to reflect the name of
  92.        the current remote directory.  To see what's in  the  cur-
  93.        rent  remote  directory,  you can use the program's ls and
  94.        dir commands.  The former is terse, preferring more remote
  95.        files  in  less  screen space, and the latter is more ver-
  96.        bose, giving detailed information about each item  in  the
  97.        directory.
  98.  
  99.        You  can  use  the  program's  cd command to move to other
  100.        directories on the remote system.  The cd command  behaves
  101.        very  much like the command of the same name in the Bourne
  102.        and Korn shell.
  103.  
  104.        The purpose of the program is to exchange data with  other
  105.        systems.   You can use the program's get command to copy a
  106.        file from the remote system to your local system:
  107.  
  108.             get README.txt
  109.  
  110.        The program will display the progress of the  transfer  on
  111.        the  screen,  so  you  can  tell how much needs to be done
  112.        before the transfer finishes.  When the transfer does fin-
  113.        ish,  then  you  can  enter more commands to the program's
  114.        command shell.
  115.  
  116.        You can use the program's put command to copy a file  from
  117.        your system to the remote system:
  118.  
  119.             put something.tar
  120.  
  121.        When  you  are  finished  using the remote system, you can
  122.        open another one or use the quit
  123.  
  124.        Before quitting, you may want to save the current FTP ses-
  125.        sion's  settings for later.  You can use the bookmark com-
  126.        mand to save an  entry  into  your  $HOME/.ncftp/bookmarks
  127.  
  128.  
  129.  
  130.                             NCEMRSoft                           2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ncftp(1)                                                 ncftp(1)
  137.  
  138.  
  139.        file.  When you use the bookmark command, you also specify
  140.        a bookmark name, so the next time instead of  opening  the
  141.        full  hostname  you  can  use the name of the bookmark.  A
  142.        bookmark acts just like one for your web  browser,  so  it
  143.        saves  the  remote directory you were in, the account name
  144.        you used, etc., and other information it learned  so  that
  145.        the  next  time  you use the bookmark it should require as
  146.        little effort from you as possible.
  147.  
  148.    COMMAND REFERENCE
  149.        help   The first command to know is  help.   If  you  just
  150.               type
  151.  
  152.                    help
  153.  
  154.               from  the  command  shell,  the  program prints the
  155.               names of  all  of  the  supported  commands.   From
  156.               there,  you  can get specific help for a command by
  157.               typing the command after, for example:
  158.  
  159.                    help open
  160.  
  161.               prints information about the open command.
  162.  
  163.        ascii  This command sets the transfer type to ASCII  text.
  164.               This  is useful for text-only transfers because the
  165.               concept of text  files  differs  between  operating
  166.               systems.   For example on UNIX, a text file denotes
  167.               line breaks with the linefeed character,  while  on
  168.               MS-DOS  a  line break is denoted by both a carriage
  169.               return character and a line feed character.  There-
  170.               fore, for data transfers that you consider the data
  171.               as text you can use ascii to ensure that  both  the
  172.               remote  system  and  local system translate accord-
  173.               ingly.  The default transfer type that  ncftp  uses
  174.               is not ASCII, but straight binary.
  175.  
  176.        bgget and bgput
  177.               These  commands  correspond to the get and put com-
  178.               mands explained below, except that they do the  job
  179.               in the background.  Normally when you do a get then
  180.               the program does the download immediately, and does
  181.               not  return  control to you until the download com-
  182.               pletes.  The background transfers are nice  because
  183.               you can continue browsing the remote filesystem and
  184.               even open other systems.  In fact, they are done by
  185.               a  daemon process, so even if you log off your UNIX
  186.               host the daemon should  still  do  your  transfers.
  187.               The  daemon  will  also  automatically  continue to
  188.               retry the transfers until  they  finish.   To  tell
  189.               when  background  jobs  have  finished, you have to
  190.               examine the $HOME/.ncftp/batchlog file, or run  the
  191.               jobs command from within NcFTP.
  192.  
  193.  
  194.  
  195.  
  196.                             NCEMRSoft                           3
  197.  
  198.  
  199.  
  200.  
  201.  
  202. ncftp(1)                                                 ncftp(1)
  203.  
  204.  
  205.               Both  the  bgget  and  bgput  commands allow you to
  206.               schedule when to do the  transfers.   They  take  a
  207.               ``-@''  parameter,  whose argument is a date of the
  208.               form YYYYMMDDhhmmss (four digit year,  month,  day,
  209.               hour,  minute, second).  For example, to schedule a
  210.               download at 3 AM on November 6, you could try:
  211.  
  212.                    bgget -@ 19971106030000 /pub/idstuff/quake/q2_100.zip
  213.  
  214.        bgstart
  215.               This command tells ncftp to immediately  start  the
  216.               background transfers you've requested, which simply
  217.               runs a copy of  the  ncftpbatch  program  which  is
  218.               responsible  for the background jobs.  Normally the
  219.               program will start the background job  as  soon  as
  220.               you  close  the  current  site, open a new site, or
  221.               quit the program.  The reason for this  is  because
  222.               since  so  many  users  still use slow dialup links
  223.               that starting the transfers would slow things to  a
  224.               crawl,  making  it  difficult  to browse the remote
  225.               system.  An added bonus of starting the  background
  226.               job  when you close the site is that ncftp can pass
  227.               off that open connection to the ncftpbatch program.
  228.               That  is nice when the site is always busy, so that
  229.               the background job doesn't have to wait and get re-
  230.               logged on to do its job.
  231.  
  232.        binary Sets  the  transfer  type to raw binary, so that no
  233.               translation is done on the data transferred.   This
  234.               is  the  default  anyway,  since  most files are in
  235.               binary.
  236.  
  237.        bookmark
  238.               Saves the current session settings for  later  use.
  239.               This is useful to save the remote system and remote
  240.               working directory so you can quickly  resume  where
  241.               you left off some other time.  The bookmark data is
  242.               stored in your $HOME/.ncftp/bookmarks file.
  243.  
  244.        bookmarks
  245.               Lists the contents of  your  $HOME/.ncftp/bookmarks
  246.               file  in a human-readable format.  You can use this
  247.               command to recall the bookmark name of a previously
  248.               saved  bookmark,  so that you can use the open com-
  249.               mand with it.
  250.  
  251.        cat    Acts like the ``/bin/cat'' UNIX command,  only  for
  252.               remote  files.  This downloads the file you specify
  253.               and dumps it directly  to  the  screen.   You  will
  254.               probably  find  the page command more useful, since
  255.               that lets you view the file one screen  at  a  time
  256.               instead of printing the entire file at once.
  257.  
  258.        cd     Changes  the  working directory on the remote host.
  259.  
  260.  
  261.  
  262.                             NCEMRSoft                           4
  263.  
  264.  
  265.  
  266.  
  267.  
  268. ncftp(1)                                                 ncftp(1)
  269.  
  270.  
  271.               Use this command to move to different areas on  the
  272.               remote  server.  If you just opened a new site, you
  273.               might be in the root directory.  Perhaps there  was
  274.               a   directory  called  ``/pub/news/comp.sources.d''
  275.               that someone told you about.  From the root  direc-
  276.               tory, you could:
  277.  
  278.                    cd pub
  279.                    cd news
  280.                    cd comp.sources.d
  281.  
  282.               or, more concisely,
  283.  
  284.                    cd /pub/news/comp.sources.d
  285.  
  286.               Then,  commands  such  as get, put, and ls could be
  287.               used to refer to items in that directory.
  288.  
  289.               Some shells in the UNIX environment have a  feature
  290.               I  like,  which is switching to the previous direc-
  291.               tory.  Like those shells, you can do:
  292.  
  293.                    cd -
  294.  
  295.               to change to the last directory you were in.
  296.  
  297.        chmod  Acts like the ``/bin/chmod'' UNIX command, only for
  298.               remote files.  However, this is not a standard com-
  299.               mand, so remote FTP servers may not support it.
  300.  
  301.        close  Disconnects you from the remote server.   The  pro-
  302.               gram  does  this for you automatically when needed,
  303.               so you can simply open other sites or quit the pro-
  304.               gram  without worrying about closing the connection
  305.               by hand.
  306.  
  307.        debug  This command is mostly for internal  testing.   You
  308.               could type
  309.  
  310.                    debug 1
  311.  
  312.               to  turn debugging mode on.  Then you could see all
  313.               messages between the program and the remote server,
  314.               and things that are only printed in debugging mode.
  315.               However, this information is also available in  the
  316.               $HOME/.ncftp/trace file, which is created each time
  317.               you run ncftp.  If you need to report a bug, send a
  318.               trace file if you can.
  319.  
  320.        dir    Prints  a  detailed directory listing.  It tries to
  321.               behave like UNIX's ``/bin/ls -l'' command.  If  the
  322.               remote server seems to be a UNIX host, you can also
  323.               use the same flags you would with ls, for instance
  324.  
  325.  
  326.  
  327.  
  328.                             NCEMRSoft                           5
  329.  
  330.  
  331.  
  332.  
  333.  
  334. ncftp(1)                                                 ncftp(1)
  335.  
  336.  
  337.                    dir -rt
  338.  
  339.               would try to act like
  340.  
  341.                    /bin/ls -lrt
  342.  
  343.               would on UNIX.
  344.  
  345.        get    Copies files from the current working directory  on
  346.               the  remote  host to your machine's current working
  347.               directory.  To  place  a  copy  of  ``README''  and
  348.               ``README.too''  in  your local directory, you could
  349.               try:
  350.  
  351.                    get README README.too
  352.  
  353.               You could also accomplish that by using a  wildcard
  354.               expression, such as:
  355.  
  356.                    get README*
  357.  
  358.               This  command  is  similar to the behavior of other
  359.               FTP programs' mget command.  To retrieve  a  remote
  360.               file but give it a different name on your host, you
  361.               can use the ``-z'' flag.  This example shows how to
  362.               download  a  file  called  ReadMe.txt  but  name it
  363.               locally as README:
  364.  
  365.                    get -z ReadMe.txt README
  366.  
  367.               The  program  tries  to  ``resume''  downloads   by
  368.               default.   This means that if the remote FTP server
  369.               lost the connection and was only able to  send  490
  370.               kilobytes  of a 500 kilobyte file, you could recon-
  371.               nect to the FTP server and do another  get  on  the
  372.               same  file  name and it would get the last 10 kilo-
  373.               bytes, instead of retrieving the entire file again.
  374.               There  are  some  occasions  where you may not want
  375.               that behavior.  To turn it  off  you  can  use  the
  376.               ``-Z'' flag.
  377.  
  378.               There are also times where you want to append to an
  379.               existing file.  You can do this by using the ``-A''
  380.               flag, for example
  381.  
  382.                    get -A log.11
  383.  
  384.               would  append  to  a  file  named  ``log.11'' if it
  385.               existed locally.
  386.  
  387.               Another thing you can do is delete  a  remote  file
  388.               after  you  download it.  This can be useful when a
  389.               remote host expects a file to be  removed  when  it
  390.               has been retrieved.  Use the double-D flag, such as
  391.  
  392.  
  393.  
  394.                             NCEMRSoft                           6
  395.  
  396.  
  397.  
  398.  
  399.  
  400. ncftp(1)                                                 ncftp(1)
  401.  
  402.  
  403.               ``get -DD'' to do this.
  404.  
  405.               The get command lets you retrieve entire  directory
  406.               trees,  too.   Although  it  may not work with some
  407.               remote systems,  you  can  try  ``get -R''  with  a
  408.               directory  to  download  the directory and its con-
  409.               tents.
  410.  
  411.        jobs   Views the list of currently executing  NcFTP  back-
  412.               ground  tasks.   This actually just runs ncftpbatch
  413.               -l for you.
  414.  
  415.        lcd    The lcd command is the first of a  few  ``l''  com-
  416.               mands  that work with the local host.  This changes
  417.               the current working directory on  the  local  host.
  418.               If  you  want  to  download  files into a different
  419.               local directory, you could use  lcd  to  change  to
  420.               that directory and then do your downloads.
  421.  
  422.        lchmod Runs ``/bin/chmod'' on the local host.
  423.  
  424.        lls    Another  local  command  that comes in handy is the
  425.               lls command, which runs ``/bin/ls''  on  the  local
  426.               host and displays the results in the program's win-
  427.               dow.  You can use the same flags with  lls  as  you
  428.               would  in  your command shell, so you can do things
  429.               like:
  430.  
  431.                    lcd ~/doc
  432.                    lls -lrt p*.txt
  433.  
  434.        lmkdir Runs ``/bin/mkdir'' on the local host.
  435.  
  436.        lookup The program also has a built-in  interface  to  the
  437.               name  service  via  the lookup command.  This means
  438.               you can lookup entries for remote hosts, like:
  439.  
  440.                    lookup cse.unl.edu ftp.cs.unl.edu sphygmomanometer.unl.edu
  441.  
  442.               prints:
  443.  
  444.                    cse.unl.edu               129.93.33.1
  445.                    typhoon.unl.edu           129.93.33.24
  446.                    sphygmomanometer.unl.edu  129.93.33.126
  447.  
  448.               There is also a more detailed option, enabled  with
  449.               ``-v,'' i.e.:
  450.  
  451.                    lookup -v cse.unl.edu ftp.cs.unl.edu
  452.  
  453.               prints:
  454.  
  455.                    cse.unl.edu:
  456.                        Name:     cse.unl.edu
  457.  
  458.  
  459.  
  460.                             NCEMRSoft                           7
  461.  
  462.  
  463.  
  464.  
  465.  
  466. ncftp(1)                                                 ncftp(1)
  467.  
  468.  
  469.                        Address:  129.93.33.1
  470.  
  471.                    ftp.cs.unl.edu:
  472.                        Name:     typhoon.unl.edu
  473.                        Alias:    ftp.cs.unl.edu
  474.                        Address:  129.93.33.24
  475.  
  476.               You  can also give IP addresses, so this would work
  477.               too:
  478.  
  479.                    lookup 129.93.33.24
  480.  
  481.               prints:
  482.  
  483.                    typhoon.unl.edu           129.93.33.24
  484.  
  485.        lpage  Views a local file one page at a  time,  with  your
  486.               preferred $PAGER program.
  487.  
  488.        lpwd   Prints  the current local directory.  Use this com-
  489.               mand when you forget where you are  on  your  local
  490.               machine.
  491.  
  492.        lrename
  493.               Runs ``/bin/mv'' on the local host.
  494.  
  495.        lrm    Runs ``/bin/rm'' on the local host.
  496.  
  497.        lrmdir Runs ``/bin/rmdir'' on the local host.
  498.  
  499.        ls     Prints  a directory listing from the remote system.
  500.               It tries to behave like UNIX's ``/bin/ls -CF'' com-
  501.               mand.   If  the  remote  server  seems to be a UNIX
  502.               host, you can also use the  same  flags  you  would
  503.               with ls, for instance
  504.  
  505.                    ls -rt
  506.  
  507.               would try to act like
  508.  
  509.                    /bin/ls -CFrt
  510.  
  511.               would on UNIX.
  512.  
  513.               ncftp  has  a  powerful built-in system for dealing
  514.               with directory listings.  It tries  to  cache  each
  515.               one, so if you list the same directory, odds are it
  516.               will display instantly.  Behind the  scenes,  ncftp
  517.               always  tries a long listing, and then reformats it
  518.               as it needs to.  So even if your first listing of a
  519.               directory  was a regular ``ls'' which displayed the
  520.               files  in  columns,  your  next  listing  could  be
  521.               ``ls -lrt''  and  ncftp  would still use the cached
  522.               directory   listing   to   quickly   display    the
  523.  
  524.  
  525.  
  526.                             NCEMRSoft                           8
  527.  
  528.  
  529.  
  530.  
  531.  
  532. ncftp(1)                                                 ncftp(1)
  533.  
  534.  
  535.               information for you!
  536.  
  537.        mkdir  Creates  a  new  directory on the remote host.  For
  538.               many public archives, you  won't  have  the  proper
  539.               access permissions to do that.
  540.  
  541.        open   Establishes  an  FTP control connection to a remote
  542.               host.  By default, ncftp logs in anonymously to the
  543.               remote  host.   You may want to use a specific user
  544.               account when you log in, so you can use the  ``-u''
  545.               flag to specify which user.  This example shows how
  546.               to open the  host  ``bowser.nintendo.co.jp''  using
  547.               the username ``mario:''
  548.  
  549.                    open -u mario bowser.nintendo.co.jp
  550.  
  551.        page   Browses  a  remote  file  one page at a time, using
  552.               your $PAGER program.  This is  useful  for  reading
  553.               README's  on  the  remote  host without downloading
  554.               them first.
  555.  
  556.        pdir and pls
  557.               These commands are equivalent to dir and ls respec-
  558.               tively,  only they feed their output to your pager.
  559.               These commands are useful if the directory  listing
  560.               scrolls off your screen.
  561.  
  562.        put    Copies  files  from  the  local  host to the remote
  563.               machine's current working directory.   To  place  a
  564.               copy  of  ``xx.zip''  and  ``yy.zip'' in the remote
  565.               directory, you could try:
  566.  
  567.                    put xx.zip yy.zip
  568.  
  569.               You could also accomplish that by using a  wildcard
  570.               expression, such as:
  571.  
  572.                    put *.zip
  573.  
  574.               This  command  is  similar to the behavior of other
  575.               FTP programs' mput command.  To send a remote  file
  576.               but  give it a different name on your host, you can
  577.               use the ``-z'' flag.  This  example  shows  how  to
  578.               upload  a  file  called ``ncftpd-2.0.6.tar.gz'' but
  579.               name it remotely as ``NFTPD206.TGZ:''
  580.  
  581.                    put -z ncftpd-2.0.6.tar.gz NFTPD206.TGZ
  582.  
  583.               The program does not try to ``resume''  uploads  by
  584.               default.   If  you do want to resume an upload, use
  585.               the ``-z'' flag.
  586.  
  587.               There are also times where you want to append to an
  588.               existing remote file.  You can do this by using the
  589.  
  590.  
  591.  
  592.                             NCEMRSoft                           9
  593.  
  594.  
  595.  
  596.  
  597.  
  598. ncftp(1)                                                 ncftp(1)
  599.  
  600.  
  601.               ``-A'' flag, for example
  602.  
  603.                    put -A log11.txt
  604.  
  605.               would append to a file named  ``log11.txt''  if  it
  606.               existed on the remote server.
  607.  
  608.               Another  thing  you  can  do is delete a local file
  609.               after you upload it.  Use the double-D  flag,  such
  610.               as ``put -DD'' to do this.
  611.  
  612.               The  put  command  lets  you  send entire directory
  613.               trees, too.  It should work on all remote  systems,
  614.               so  you  can  try  ``put -R''  with  a directory to
  615.               upload the directory and its contents.
  616.  
  617.        pwd    Prints the current  remote  working  directory.   A
  618.               portion  of  the  pathname is also displayed in the
  619.               shell's prompt.
  620.  
  621.        quit   Of course, when you finish using the program,  type
  622.               quit  to  end  the program (You could also use bye,
  623.               exit, or ^D).
  624.  
  625.        quote  This can be used to send a direct FTP Protocol com-
  626.               mand  to  the  remote server.  Generally this isn't
  627.               too useful to the average user.
  628.  
  629.        rename If you need to change the name of  a  remote  file,
  630.               you can use the rename command, like:
  631.  
  632.                    rename SPHYGMTR.TAR sphygmomanometer-2.3.1.tar
  633.  
  634.        rhelp  Sends  a  help  request  to the remote server.  The
  635.               list of FTP Protocol commands is often printed, and
  636.               sometimes  some  other information that is actually
  637.               useful, like how to reach the site administrator.
  638.  
  639.               Depending on the remote server, you may be able  to
  640.               give a parameter to the server also, like:
  641.  
  642.                    rhelp NLST
  643.  
  644.               One server responded:
  645.  
  646.                    Syntax: NLST [ <sp> path-name ]
  647.  
  648.        rm     If you need to delete a remote file you can try the
  649.               rm command.  Much  of  the  time  this  won't  work
  650.               because  you  won't  have the proper access permis-
  651.               sions.  This command doesn't accept any  flags,  so
  652.               you  can't nuke a whole tree by using ``-rf'' flags
  653.               like you can on UNIX.
  654.  
  655.  
  656.  
  657.  
  658.                             NCEMRSoft                          10
  659.  
  660.  
  661.  
  662.  
  663.  
  664. ncftp(1)                                                 ncftp(1)
  665.  
  666.  
  667.        rmdir  Similarly, the rmdir command removes  a  directory.
  668.               Depending  on the remote server, you may be able to
  669.               remove a non-empty directory, so be careful.
  670.  
  671.        set    This lets you  configure  some  program  variables,
  672.               which    are    saved    between    runs   in   the
  673.               $HOME/.ncftp/prefs file.  The basic syntax is:
  674.  
  675.                    set <option> <value>
  676.  
  677.               For example, to change the value you  use  for  the
  678.               anonymous password, you might do:
  679.  
  680.                    set anon-password ncftp@ncftp.com
  681.  
  682.               See  the  next  section  for  a  list of things you
  683.               change.
  684.  
  685.        show   This lets you display program variables.   You  can
  686.               do  ``show all''  to display all of them, or give a
  687.               variable name to just display that one, such as:
  688.  
  689.                    show anon-password
  690.  
  691.        site   One obscure command you may have to use someday  is
  692.               site.   The  FTP  Protocol  allows  for ``site spe-
  693.               cific'' commands.  These ``site'' commands vary  of
  694.               course, such as:
  695.  
  696.                    site chmod 644 README
  697.  
  698.               Actually,  ncftp's  chmod  command  really does the
  699.               above.
  700.  
  701.               Try doing one of  these  to  see  what  the  remote
  702.               server supports, if any:
  703.  
  704.                    rhelp SITE
  705.                    site help
  706.  
  707.        type   You  may  need  to change transfer types during the
  708.               course of a session with a server.  You can use the
  709.               type command to do this.  Try one of these:
  710.  
  711.                    type ascii
  712.                    type binary
  713.                    type image
  714.  
  715.               The  ascii command is equivalent to ``type a'', and
  716.               the binary command is equivalent to ``type i''  and
  717.               ``type b''.
  718.  
  719.        umask  Sets the process' umask on the remote server, if it
  720.               has any concept of a umask, i.e.:
  721.  
  722.  
  723.  
  724.                             NCEMRSoft                          11
  725.  
  726.  
  727.  
  728.  
  729.  
  730. ncftp(1)                                                 ncftp(1)
  731.  
  732.  
  733.                    umask 077
  734.  
  735.               However, this is not a standard command, so  remote
  736.               FTP servers may not support it.
  737.  
  738.        version
  739.               This  command dumps some information about the par-
  740.               ticular edition of the program you are  using,  and
  741.               how it was installed on your system.
  742.  
  743.    VARIABLE REFERENCE
  744.        anon-password
  745.               Specifies what to use for the password when logging
  746.               in anonymously.  Internet convention  has  been  to
  747.               use  your  E-mail address as a courtesy to the site
  748.               administrator.  If you change this, be  aware  that
  749.               some  sites  require (i.e. they check for) valid E-
  750.               mail addresses.
  751.  
  752.        confirm-close
  753.               By default the program will ask you when a site you
  754.               haven't  bookmarked is about to be closed.  To turn
  755.               this prompt off, you can set this variable to no.
  756.  
  757.        connect-timeout
  758.               Previous versions of  the  program  used  a  single
  759.               timeout  value  for  everything.   You can now have
  760.               different values for  different  operations.   How-
  761.               ever, you probably do not need to change these from
  762.               the defaults unless you have special  requirements.
  763.  
  764.               The  connect-timeout  variable controls how long to
  765.               wait, in seconds, for a connection establishment to
  766.               complete  before  considering it hopeless.  You can
  767.               choose to not use a timeout at all by setting  this
  768.               to -1.
  769.  
  770.        control-timeout
  771.               This is the timer used when ncftp sends an FTP com-
  772.               mand over the  control  connection  to  the  remote
  773.               server.   If the server hasn't replied in that many
  774.               seconds, it considers the session lost.
  775.  
  776.        pager  This is the external program to use to view a  text
  777.               file, and is more by default.
  778.  
  779.        passive
  780.               This  controls  ncftp's  behavior  for data connec-
  781.               tions, and can be set to one of  on,  off,  or  the
  782.               default,  optional.  When passive mode is on, ncftp
  783.               uses the FTP command primitive  PASV  to  have  the
  784.               client  establish  data  connections to the server.
  785.               The default FTP protocol behavior is to use the FTP
  786.               command   primitive   PORT  which  has  the  server
  787.  
  788.  
  789.  
  790.                             NCEMRSoft                          12
  791.  
  792.  
  793.  
  794.  
  795.  
  796. ncftp(1)                                                 ncftp(1)
  797.  
  798.  
  799.               establish data  connections  to  the  client.   The
  800.               default setting for this variable, optional, allows
  801.               ncftp to choose whichever method  it  deems  neces-
  802.               sary.
  803.  
  804.        progress-meter
  805.               You  can change how the program reports file trans-
  806.               fer status.  Select from meter 2, 1, or 0.
  807.  
  808.        save-passwords
  809.               If you set this variable to yes, the  program  will
  810.               save  passwords  along with the bookmarks you save.
  811.               While this makes non-anonymous logins  more  conve-
  812.               nient,  this  can  be  very  dangerous  since  your
  813.               account  information  is   now   sitting   in   the
  814.               $HOME/.ncftp/bookmarks  file.  The passwords aren't
  815.               in clear text, but it is still  trivial  to  decode
  816.               them if someone wants to make a modest effort.
  817.  
  818.        xfer-timeout
  819.               This  timer  controls  how  long  to  wait for data
  820.               blocks to complete.  Don't set this too low or else
  821.               your transfers will timeout without completing.
  822.  
  823.    FIREWALL AND PROXY CONFIGURATION
  824.        You  may find that your network administrator has placed a
  825.        firewall between your machine and the Internet,  and  that
  826.        you cannot reach external hosts.
  827.  
  828.        The  answer  may be as simple as setting ncftp to use pas-
  829.        sive mode only, which you can  do  from  a  ncftp  command
  830.        prompt like this:
  831.  
  832.             set passive yes
  833.  
  834.        The reason for this is because many firewalls do not allow
  835.        incoming connections to the site, but do  allow  users  to
  836.        establish outgoing connections.  A passive data connection
  837.        is established by the client to the  server,  whereas  the
  838.        default  is  for the server to establish the connection to
  839.        the client, which firewalls may object to.  Of course, you
  840.        now  may  have  problems  with  sites  whose primitive FTP
  841.        servers do not support passive mode.
  842.  
  843.        Otherwise, if you know you need to have ncftp  communicate
  844.        directly with a firewall or proxy, you can try editing the
  845.        separate $HOME/.ncftp/firewall configuration  file.   This
  846.        file  is  created automatically the first time you run the
  847.        program, and contains all the information you need to  get
  848.        the program to work in this setup.
  849.  
  850.        The  basics  of  this  process  are configuring a firewall
  851.        (proxy) host to go through, a user  account  and  password
  852.        for  authentication  on  the  firewall,  and which type of
  853.  
  854.  
  855.  
  856.                             NCEMRSoft                          13
  857.  
  858.  
  859.  
  860.  
  861.  
  862. ncftp(1)                                                 ncftp(1)
  863.  
  864.  
  865.        firewall method to use.  You can also setup  an  exclusion
  866.        list, so that ncftp does not use the firewall for hosts on
  867.        the local network.
  868.  
  869. FILES
  870.        $HOME/.ncftp/batchlog
  871.               Information for background data transfer processes.
  872.  
  873.        $HOME/.ncftp/bookmarks
  874.               Saves bookmark and host information.
  875.  
  876.        $HOME/.ncftp/firewall
  877.               Firewall access configuration file.
  878.  
  879.        $HOME/.ncftp/prefs
  880.               Program preferences.
  881.  
  882.        $HOME/.ncftp/spool/
  883.               Directory  where  background jobs are stored in the
  884.               form of spool configuration files.
  885.  
  886.        $HOME/.ncftp/trace
  887.               Debugging output for entire program run.
  888.  
  889.        $HOME/.ncftp/v3init
  890.               Used to tell if this version of the program has run
  891.               before.
  892.  
  893. ENVIRONMENT
  894.        PATH   User's  search  path,  used  to find the ncftpbatch
  895.               program, pager, and some other system utilities.
  896.  
  897.        PAGER  Program to use to view text files  one  page  at  a
  898.               time.
  899.  
  900.        TERM   If  the  program  was compiled with support for GNU
  901.               Readline it will need to know how to manipulate the
  902.               terminal  correctly  for  line-editing,  etc.   The
  903.               pager program will also take advantage of this set-
  904.               ting.
  905.  
  906.        HOME   By  default,  the  program writes its configuration
  907.               data in a .ncftp subdirectory of  the  HOME  direc-
  908.               tory.
  909.  
  910.        NCFTPDIR
  911.               If set, the program will use this directory instead
  912.               of $HOME/.ncftp.  This variable is optional  except
  913.               for  those  users  whose home directory is the root
  914.               directory.
  915.  
  916.        COLUMNS
  917.               Both the built-in ls command and  the  external  ls
  918.               command  need  this  to  determine  how many screen
  919.  
  920.  
  921.  
  922.                             NCEMRSoft                          14
  923.  
  924.  
  925.  
  926.  
  927.  
  928. ncftp(1)                                                 ncftp(1)
  929.  
  930.  
  931.               columns the terminal has.
  932.  
  933. BUGS
  934.        There are no such  sites  named  bowser.nintendo.co.jp  or
  935.        sphygmomanometer.unl.edu.
  936.  
  937.        Auto-resume  should  check  the file timestamps instead of
  938.        relying upon just the file sizes, but it is  difficult  to
  939.        do this reliably within FTP.
  940.  
  941.        Directory   caching  and  recursive  downloads  depend  on
  942.        UNIX-like behavior of the remote host.
  943.  
  944. AUTHOR
  945.        Mike Gleason, NCEMRSoft (mgleason@ncftp.com).
  946.  
  947. SEE ALSO
  948.        ncftpput(1), ncftpget(1), ncftpbatch(1),  ftp(1),  rcp(1),
  949.        tftp(1).
  950.  
  951.        LibNcFTP (http://www.ncftp.com/libncftp).
  952.  
  953.        NcFTPd (http://www.ncftp.com/ncftpd).
  954.  
  955. THANKS
  956.        Thanks  to everyone who uses the program.  Your support is
  957.        what drives me to improve the program!
  958.  
  959.        I thank Dale Botkin and Tim  Russell  at  my  former  ISP,
  960.        Probe Technology.
  961.  
  962.        Ideas and some code contributed by my partner, Phil Dietz.
  963.  
  964.        Thanks to Brad Mittelstedt and Chris Tjon, for driving and
  965.        refining  the development of the backbone of this project,
  966.        LibNcFTP.
  967.  
  968.        I'd like to thank my former  system  administrators,  most
  969.        notably Charles Daniel, for making testing on a variety of
  970.        platforms possible, letting me have some extra disk space,
  971.        and for maintaining the UNL FTP site.
  972.  
  973.        For  testing versions 1 and 2 above and beyond the call of
  974.        duty,  I  am   especially   grateful   to:   Phil   Dietz,
  975.        Kok Hon Yin, and Andrey A. Chernov (ache@astral.msk.su).
  976.  
  977.        Thanks  to  Tim  MacKenzie (t.mackenzie@trl.oz.au) for the
  978.        original filename completion code for  version  2.3.0  and
  979.        2.4.2.
  980.  
  981.        Thanks to DaviD W. Sanderson (dws@ora.com), for helping me
  982.        out with the man page.
  983.  
  984.        Thanks to those of you at UNL who appreciate my work.
  985.  
  986.  
  987.  
  988.                             NCEMRSoft                          15
  989.  
  990.  
  991.  
  992.  
  993.  
  994. ncftp(1)                                                 ncftp(1)
  995.  
  996.  
  997.        Thanks to Red  Hat  Software  for  honoring  my  licensing
  998.        agreement,  but  more  importantly, thanks for providing a
  999.        solid and affordable development platform.
  1000.  
  1001. APOLOGIES
  1002.        To the users, for not being able to respond personally  to
  1003.        most of your inquiries.
  1004.  
  1005.        To Phil, for things not being the way they should be.
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.                             NCEMRSoft                          16
  1055.  
  1056.