Re: Capturing FTP messages in a script ??????????

peter.glover_at_dsl.pipex.com
Date: 07/25/03


Date: 25 Jul 2003 02:57:47 -0700

alu@dairynet.com (Wood Butcher) wrote in message news:<rKBTa.3407$Jk5.2408105@feed2.centurytel.net>...
> I have a script where I'm doing a FTP.
> It consists of PROMPT followed by a MGET xxxx* followed by quit.
> I add an output redirect to the "FTP" command to capture (to a file) all the
> lines of output produced by the FTP.
> It seems that as soon as the PROMPT command is executed, capturing of
> output stops. So I don't see the number of bytes transferred, etc.
>
> Script looks like:
>
> FTP SERVERX >>capture.file
> PROMPT
> MGET xxxx*
> quit
>
> Any other ideas for having a FTP/PROMPT/MGET script and capture all
> lines ??
>
> Thanks for any help in advance.

Woody??

Try using the following command I think that your above script may
work if you added the verb command:

ftp xxx.xxx.xxx.xxx <<-EOC >> /tmp/outputfile.txt
verb
prompt
mget somefiles
EOC

Regards

Peter



Relevant Pages

  • Capturing FTP messages in a script ??????????
    ... I have a script where I'm doing a FTP. ... It consists of PROMPT followed by a MGET xxxx* followed by quit. ...
    (comp.unix.aix)
  • Re: Abort script in SQLPLUS
    ... How to quit a script in SQL*PLUS? ... ACCEPT v_inp PROMPT 'Quit or Run?' ...
    (comp.databases.oracle.server)
  • behavioral change of "read" builtin for sh on 8-CURRENT
    ... This script waits for terminal input for each of the above variables (INT, ... On 8-CURRENT if I hit Enter with no input at the prompt the system seems to ... recognize the newline as input and continues to sit there until I hit Enter ... Enter network interface: ...
    (freebsd-current)
  • behavioral change of "read" builtin for sh on 8-CURRENT
    ... This script waits for terminal input for each of the above variables (INT, ... On 8-CURRENT if I hit Enter with no input at the prompt the system seems to ... recognize the newline as input and continues to sit there until I hit Enter ... Enter network interface: ...
    (freebsd-questions)
  • Re: behavioral change of "read" builtin for sh on 8-CURRENT
    ... This script waits for terminal input for each of the above variables (INT, ... On 8-CURRENT if I hit Enter with no input at the prompt the system seems to ... recognize the newline as input and continues to sit there until I hit Enter ... Enter network interface: ...
    (freebsd-current)