In ipftp or any other of the output programs, you can optionally keep a log file.
It is a good idea to make the name of the log file variable, by adding a date to the log filename, in the form of a FingerPost system variable. This means that a new ftp log is created every day e.g.
logfile:/fip/log/ftp/to-grendel.log.\$D
This will then create a log file in /fip/log/ftp called 'to-grendel.log.17' today, 'to-grendel.log.18' tomorrow and so on.
To maintain the number of logs you wish to keep, add these lines to the FingerPost nightly maintenance script, which is normally called zapfiplog and stored in /fip/local.
if [ -d /fip/log/ftp ]; then
/fip/bin/ipdelque -q /fip/log/ftp -i 0 -m 5
fi
Where -m 5 is how old a file should be in days, before it is deleted. In this case you will always keep the last five days of ftp transmission logs to Media Norge. Obviously this value is variable.
The -i 0 switch just tells the program how long to wait (in seconds) before it starts deleting the files. As it is a nightly script, there is no point waiting, so the program starts to delete files straight away.