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
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.