We have written an utility to automate file transfer through FTP service using Perl. We want to know how we can track the progress of upload?
+2
A:
Net::FTP has a hash method which will print a # mark for every chunk (of a user-definable size) transferred to a user-specified file handle.
You can also enable this progress indicator in the constructor:
Hash- If given a reference to a file handle (e.g.,\*STDERR), print hash marks (#) on that filehandle every 1024 bytes. This simply invokes thehash()method for you, so that hash marks are displayed for all transfers. You can, of course, callhash()explicitly whenever you'd like.
I have not used it, but sounds promising.
Sinan Ünür
2010-07-06 12:43:05
Anything in Python?
Joy
2010-07-07 12:09:30
@Joy Please explain what you mean by "Anything in Python?"
Sinan Ünür
2010-07-07 12:21:21