Re: [SOLVED] Re: Capturing ftp reponses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 6/2/2011 3:58 PM, James B. Byrne wrote:
>
>
> On Thu, June 2, 2011 15:23, James B. Byrne wrote:
>
>>
>> However, the first line that I find in the logging file is the
>> results of the dir command following the user command.  Can someone
>> tell me how I can capture and log the initial response to the ftp
>> connection?
>
> I since discovered that to capture remote host responses one must
> specify the -v (verbose) option to the ftp client: $ ftp -v
> host.domain.tld

Depending on what you are doing with the responses you might find it 
easier to work with a tool that was intended to be automated (curl, 
wget, perl's Net::FTP, etc.) instead of scripting ftp itself.

-- 
   Les Mikesell
    lesmikesell@xxxxxxxxx



_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux