home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / pentotal.zip / totals.txt < prev   
Text File  |  1995-03-18  |  3KB  |  60 lines

  1. totals - a simple program designed to determine "statistics" from
  2.          Penguin FTP Daemon. Written by Tom Sorensen.
  3.          tom@wc51.residence.gatech.edu
  4.  
  5. Requires: Penguin FTP Daemon, v1.00 or higher.
  6.           Transfer logging (-f) be turned on.
  7.  
  8. This program simply goes through your transfer.log file (or whatever you
  9. named it if you used the -F parameter on penftpd) and totals the number
  10. of bytes sent and received. It then displays these totals along with the
  11. first date present in the logfile.
  12.  
  13. Additionally, you can have it give you info on a single day or all days.
  14. You can also suppress the overall total information.
  15.  
  16. Usage:
  17.     totals d:\tcpip\penftpd\transfer.log [-d######] [-D] [-t]
  18.  
  19. d:\tcpip...transfer.log: the name and location of the transfer log file.
  20.                          You only need to put the path in if it's not in
  21.                          the current directory (ie- totals transfer.log
  22.                          will work too)
  23.  
  24. -d###### : Show statistics for date ######. The format of the ###### is
  25.            dependant upon your country. In the US, it's generally
  26.            MMDDYY. In Europe, Austrailia, and many other places it's
  27.            DDMMYY. In Japan and other areas of Asia it's YYMMDD. In any
  28.            case it's the same format as what's in transfer.log. Do NOT
  29.            put any -'s or /'s in this, and do not put a space in between
  30.            the d and the date.
  31.  
  32. -D       : Show statistics for ALL dates. This can be lengthy.
  33.  
  34. -t       : Suppress showing of overall totals. It won't show the grand
  35.            totals at the end. Basically it's so that you can see ONLY a
  36.            single day.
  37.  
  38. What use is all this? No idea. I wanted the information though, so I
  39. wrote this program for myself and as an excercise. I had originally
  40. planned to do it in AWK, but AWK proved, well, awkward :). I also don't
  41. know Perl and didn't feel like learning it at the time. Finally, the
  42. date information would not have been possible with either as far as I
  43. know, since it requires National Language Support (part of the OS/2 API)
  44. to get some of the information.
  45.  
  46. This program is completely free. The source code is included and is
  47. released to the public domain. Although I don't plan on ever releasing a
  48. new version (unless the format of transfer.log changes), I'd like to
  49. know if you change the source code or create another "add-on" for
  50. Penguin FTPD.
  51.  
  52. This program was compiled with Watcom C++ 10.0A. Since I'm still not
  53. totally familiar with the compiler & linker options, I didn't get this
  54. to compile as small as CSet could make it. Even so, it's only 19k. If
  55. you can get this smaller with Watcom (should be possible if you can
  56. enable dynamic linking), please e-mail me the make files & link files
  57. you used.
  58.  
  59. See the .c file for various other disclaimers and such.
  60.