#!/bin/sh

./make_fields

echo "FTP Transfer Stats. By Guillaume Vangelder, 1998. A mix of sh and C++."
echo "http://www.dtek.chalmers.se/~d97van/mk-ftp-stats/"
echo 
echo "Uploads : "
echo

/usr/sbin/processLog uploads

echo
echo "Downloads : "
echo

/usr/sbin/processLog downloads

echo
echo
echo "This log file was generated : "
date

# Removing the temporary files

rm -f uploads
rm -f downloads

# Uncomment the following line if you want the old log file to be deleted.

# rm -f /var/adm/ftpd/xferlog
