Logging Statistics in Command Line mode

Core FTP client questions and answers
Locked
NickDH
Posts: 2
Joined: Wed Jun 06, 2012 10:28 am

Logging Statistics in Command Line mode

Post by NickDH »

I'm using CoreFTP LE as a test system. Initiating Download and Upload from within scripts and writing the output to a log file.

When I use the Windows interface I can see transfer size and how long it took:
* 20mb - 21363286 bytes transferred
* Transfer time: 00:00:13

On connection there are statistics given:
* Transferred 2,839 bytes in 0.002 seconds

However, these figures do not appear in the log file ... my questions are:
* Is there any command to add these statistics to the log file?
* Are these statistics given in the Pro version?

Many Thanks,

Nick
ForumAdmin
Site Admin
Posts: 1011
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

They should be in the log file (-log <logfile>)... If you have an example, feel free to post it.

There is also the -output <outputfile> log, but I'm not sure if that has the file size information in it either.
NickDH
Posts: 2
Joined: Wed Jun 06, 2012 10:28 am

log files ...

Post by NickDH »

Hi,

Since I have not found a way to attached a file to this post ... and don't have a publicly accessible server to make the dowload available from ... I have posted the contents of the log files below for reference.

Hope this helps,

Thanks,

Nick

Microsoft FTP Log (with transfer size and time given):
-.-.- ftp> user ftpXxxx
-.-.- 331 Password required for ftpxxxx
-.-.-
-.-.- 230 Logged on
-.-.- ftp> bin
-.-.- 200 Type set to I
-.-.- ftp> Local directory now ..\_02_batch_file\download.
-.-.- ftp> lcd download
-.-.- cd download
-.-.- 250 CWD successful. "/download" is current directory.
-.-.- ftp> get 16mb
-.-.- 200 Port command successful
-.-.- 150 Opening data channel for file transfer.
-.-.- 226 Transfer OK
-.-.- ftp: 16777216 bytes received in Seconds Kbytes/sec.
-.-.- ftp> 87.72191.25close
-.-.- 221 Goodbye
-.-.- ftp>

CoreFTP Log (with transfer size, but without time taken):
-.-.- USER ftpXxxx
-.-.- 331 Password required for ftpxxxx
-.-.- PASS **********
-.-.- 230 Logged on
-.-.- SYST
-.-.- 215 UNIX emulated by FileZilla
-.-.- CWD /download/
-.-.- 250 CWD successful. "/download" is current directory.
-.-.- PASV
-.-.- 227 Entering Passive Mode (192,168,0,15,214,18)
-.-.- LIST
-.-.- Connect socket #392 to 192.168.0.15, port 54802...150 Connection accepted
-.-.- 226 Transfer OK
-.-.- TYPE I
-.-.- 200 Type set to I
-.-.- PASV
-.-.- 227 Entering Passive Mode (192,168,0,15,214,19)
-.-.- RETR 32mb
-.-.- Connect socket #392 to 192.168.0.15, port 54803...150 Connection accepted
-.-.- 32mb - 33554432 bytes transferred
-.-.- 226 Transfer OK
-.-.- MDTM 32mb
-.-.- 213 20120323091618
-.-.- QUIT
-.-.- 221 Goodbye
-.-.- sent 30, recd 30
-.-.- Total uploaded files: 0
-.-.- Total uploaded data: 0
-.-.- Total downloaded files: 1
-.-.- Total downloaded data: 32,768 KB
ForumAdmin
Site Admin
Posts: 1011
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Build 1751 and greater will have the transfer time added.
Locked