Re: Capturing FTP messages in a script ??????????
peter.glover_at_dsl.pipex.com
Date: 07/25/03
- Next message: Mark Taylor: "Re: /var/adm/cron/log with 5L is growing too fast"
- Previous message: Tim Alsop: "Re: AIX 5.1 on RS/6000 43p/260 ?"
- In reply to: Wood Butcher: "Capturing FTP messages in a script ??????????"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Mark Taylor: "Re: /var/adm/cron/log with 5L is growing too fast"
- Previous message: Tim Alsop: "Re: AIX 5.1 on RS/6000 43p/260 ?"
- In reply to: Wood Butcher: "Capturing FTP messages in a script ??????????"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|