[CentOS] [SOLVED] Re: Capturing ftp reponses
Les Mikesell
lesmikesell at gmail.comThu Jun 2 21:06:03 UTC 2011
- Previous message: [CentOS] [SOLVED] Re: Capturing ftp reponses
- Next message: [CentOS] How to set selinux policy "allow httpd_t unconfined_t:shm { unix_read unix_write }; " using an seboolean? (How to get a new seboolean?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 at gmail.com
- Previous message: [CentOS] [SOLVED] Re: Capturing ftp reponses
- Next message: [CentOS] How to set selinux policy "allow httpd_t unconfined_t:shm { unix_read unix_write }; " using an seboolean? (How to get a new seboolean?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list