Sophie

Sophie

distrib > Mandriva > 8.1 > i586 > by-pkgid > 4a17edb05bec8c88e22d057aec51ad75 > files > 11

pftp-1.1.6-4mdk.i586.rpm

<HTML>
   <HEAD>
      <meta http-equiv="Content-Language" content="en">
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      <meta name="subject" content="Port-FTP - FAQ">
      <meta name="GENERATOR" content="vim">
      <TITLE> Port-FTP - FAQ </TITLE>
   </HEAD>
   <BODY VLINK="green" LINK="green" BACKGROUND="http://extern.prz.tu-berlin.de/~pftp/pftp-bg.jpg" BGCOLOR="#bfffef">
      <TABLE CELLSPACING=0 CELLPADDING=1 ALIGN="center" WIDTH="95%">
         <TR>
            <TD ALIGN="center">
               <HR WIDTH="100%">
            </TD>
         </TR>
         <TR><TD>&nbsp;</TD></TR>
         <TR>
            <TD ALIGN="center">
               <H1>Frequently Asked Questions To Port-FTP</H1>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center">
               <HR WIDTH="100%">
            </TD>
         </TR>
         <TR><TD>&nbsp;</TD></TR>
         <TR>
            <TD ALIGN="left">
               <A HREF="FAQ.html#q1">1) What's wrong if my filter program does not work with pftp?</A><P>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="left">
               <A HREF="FAQ.html#q2">2) What's wrong if the daemon does not start?</A><P>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="left">
               <A HREF="FAQ.html#q3">3) What's wrong if pftp exits with `** socket: Invalid argument'?</A><P>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="left">
               <A HREF="FAQ.html#q4">4) Isn't it insecure to put my filter password into my `.pftprc'?</A><P>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="left">
               <A HREF="FAQ.html#q5">5) Can pftp send files reliable via multicast?</A><P>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="left">
               <A HREF="FAQ.html#q6">6) How can I use mcrypt as my second filter program?</A><P>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="left">
               <A HREF="FAQ.html#q7">7) How can I use pftp to update my MySQL database?</A><P>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="left">
               <A HREF="FAQ.html#q8">8) What are the major differences between pftp and other file/data transfer programs?</A><P>
            </TD>
         </TR>
         <TR><TD>&nbsp;</TD></TR>
         <TR>
            <TD ALIGN="center"> 
               <HR WIDTH="100%">
            </TD>
         </TR>
         <TR>
            <TD ALIGN="left">
               <A NAME="q1">
               <H3>1) What's wrong if my filter program does not work with pftp?</H3>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  At first check the following:
               </DIV>
            </TD>
         </TR>
         <TR><TD>&nbsp;</TD></TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  <TABLE CELLSPACING="2" CELLPADDING="2" ALIGN="center" WIDTH="90%">
                     <TR>
                        <TD ALIGN="left"> 
                           % ls -l / | filter1 | filter2 > file1
                        </TD>
                     </TR>
                     <TR>
                        <TD ALIGN="left"> 
                           % ls -l / > file2
                        </TD>
                     </TR>
                     <TR>
                        <TD ALIGN="left"> 
                           % diff file1 file2 && echo ok
                        </TD>
                     </TR>
                  </TABLE>
               </DIV>
            </TD>
         </TR>
         <TR><TD>&nbsp;</TD></TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  Where `filter1' is used as the filter program on the client
                  side and `filter2' is used as the filter program on the
                  server side.  If this works without interaction from your
                  side than it should also work with pftp as a filter program.
                  Always keep in mind that the filter on the server side is
                  exactly(!) the opposite of the filter on the client side,
                  e.g.  `gzip' and `gunzip'.
               </DIV>
            </TD>
         </TR>
         <TR><TD>&nbsp;</TD></TR>
         <TR>
            <TD ALIGN="left">
               <A NAME="q2">
               <H3>2) What's wrong if the daemon does not start?</H3>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  At first take look into the lock file (`/var/log/pftp.log').
                  Most of the time you will find the error that way.  If the
                  server started by the internet daemon does not work try at
                  first using pftp's daemon from command line, i.e. exchange
                  `-i' with `-d'.  If this works check your entry in
                  `/etc/inetd.conf'.
               </DIV>
            </TD>
         </TR>
         <TR><TD>&nbsp;</TD></TR>
         <TR>
            <TD ALIGN="left">
               <A NAME="q3">
               <H3>3) What's wrong if pftp exits with `** socket: Invalid argument'?</H3>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  You are using the IPv6 version of pftp but forgot to load
                  your ipv6.o kernel modul into the kernel. ;^)
               </DIV>
            </TD>
         </TR>
         <TR><TD>&nbsp;</TD></TR>
         <TR>
            <TD ALIGN="left">
               <A NAME="q4">
               <H3>4) Isn't it insecure to put my filter password into my `.pftprc'?</H3>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  Well, if someone is able to read the password from your
                  resource file he or she probably does not need it any more!
                  Sit back and take some seconds to think about it.  If you do
                  not agree with me nevertheless, let's converse about it via
                  E-Mail (<A HREF="mailto:support@pftp.de">support@pftp.de</A>).
               </DIV>
            </TD>
         </TR>
         <TR><TD>&nbsp;</TD></TR>
         <TR>
            <TD ALIGN="left">
               <A NAME="q5">
               <H3>5) Can pftp send files reliable via multicast?</H3>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  No, not by now.
               </DIV>
            </TD>
         </TR>
         <TR><TD>&nbsp;</TD></TR>
         <TR>
            <TD ALIGN="left">
               <A NAME="q6">
               <H3>6) How can I use mcrypt as my second filter program?</H3>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  Suppose you want to send data from `host1' to `host2'
                  using mcrypt as your second filter program.  In your
                  pftp resource file (.pftprc) set the following two
                  global (or host specific) variables:
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  <TABLE CELLSPACING="2" CELLPADDING="2" ALIGN="center" WIDTH="90%">
                     <TR>
                        <TD ALIGN="left"> 
                           PFTPSFILTER /bin/gunzip:/usr/bin/mcrypt -q -d -b
                        </TD>
                     </TR>
                     <TR>
                        <TD ALIGN="left"> 
                           PFTPCFILTER gzip -5:/usr/bin/mcrypt -q -b
                        </TD>
                     </TR>
                  </TABLE>
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  And as host specific variables you may set:
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  <TABLE CELLSPACING="2" CELLPADDING="2" ALIGN="center" WIDTH="90%">
                     <TR>
                        <TD ALIGN="left"> 
                           friend@host2
                        </TD>
                     </TR>
                     <TR>
                        <TD ALIGN="left"> 
                           PFTPSFVAR2 MCRYPT_KEY your_secret_key:MCRYPT_ALGO Twofish-256
                        </TD>
                     </TR>
                     <TR>
                        <TD ALIGN="left"> 
                           PFTPCFVAR2 MCRYPT_KEY your_secret_key:MCRYPT_ALGO Twofish-256
                        </TD>
                     </TR>
                  </TABLE>
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  Set these variables on the local host `host1' as
                  well as on the remote host `host2'.  On the remote
                  host `host2' you write `host1' instead of `host2'.
                  That's it for the resource file.  Now let's go on to
                  the command line options.  Whenever you want to use
                  mcrypt as your filter program between `host1' and
                  `host2' or vice versa just use option `-f2', i.e.
                  suppose you want to send some files to your friend
                  at `host2' you may start the client like this
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  <TABLE CELLSPACING="2" CELLPADDING="2" ALIGN="center" WIDTH="90%">
                     <TR>
                        <TD ALIGN="left"> 
                           % pftp -1f2n files
                        </TD>
                     </TR>
                  </TABLE>
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  where `1' is the number of `friend@host2' in your
                  host name list (try `pftp -l' to see the list, or
                  start pftp with `pftp -lf2n files' to select the
                  host from your list interactively).  Please see also
                  mcrypt(1).
               </DIV>
            </TD>
         </TR>
         <TR><TD>&nbsp;</TD></TR>
         <TR>
            <TD ALIGN="left">
               <A NAME="q7">
               <H3>7) How can I use pftp to update my MySQL database?</H3>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  Suppose your first filter program is `gzip'.  On the
                  server side, i.e.  the side to be updated, enter the
                  following on command line
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  <TABLE CELLSPACING="2" CELLPADDING="2" ALIGN="center" WIDTH="90%">
                     <TR>
                        <TD ALIGN="left"> 
                           % pftp -fbbx | mysql database_name
                        </TD>
                     </TR>
                  </TABLE>
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  and on the client side, i.e. the side from which to
                  update the database enter
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  <TABLE CELLSPACING="2" CELLPADDING="2" ALIGN="center" WIDTH="90%">
                     <TR>
                        <TD ALIGN="left"> 
                           % mysqldump database_name | pftp -1fbb
                        </TD>
                     </TR>
                  </TABLE>
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  Where `1' is the sever side host name number from
                  your host name list.  See also
                  `/usr/doc/MySQL-3.22.27/manual.html'.
               </DIV>
            </TD>
         </TR>
         <TR><TD>&nbsp;</TD></TR>
         <TR>
            <TD ALIGN="left">
               <A NAME="q8">
               <H3>8) What are the major differences between pftp and other file/data transfer programs?</H3>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  8.1) You do not need root privileges at all to use pftp.
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  8.2) No authentication is necessary but possible.
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  8.3) You can filter your transfered data with wathever filter
                       program you like.
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  8.4) You can send messages to another user on the web reliable.
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  8.5) Sending data to another user via pftp is much faster, easier,
                       and much more reliable then sending it via E-Mail.
               </DIV>
            </TD>
         </TR>
         <TR>
            <TD ALIGN="center"> 
               <DIV ALIGN="justify">
                  8.6) It's the fastest data transfer program I know.  If you don't
                       believe me test it: Send a very large file and take a stop watch
                       to ensure the correct timing.  Also send many small files and
                       compare it with other programs.  You will be amazed!  :^)
               </DIV>
            </TD>
         </TR>
         <TR><TD>&nbsp;</TD></TR>
         <TR>
            <TD ALIGN="center"> 
               <HR WIDTH="100%">
            </TD>
         </TR>
      </TABLE>
   </BODY>
</HTML>