$Id: INSTALL,v 1.2 1998/02/14 17:40:55 hans Rel $

Installation - account.daily
============================

Browse through the Makefile and adjust the configuration if necessary.
Then simply type 'make install'.

By default the script will be installed in /usr/local/sbin.

If you want to use HTML output, copy the showacct script to your cgi-bin
directory.

Call 'crontab -e' and insert an entry like:

# At midnight: Accounting summary
0 0 * * * /usr/local/sbin/account.daily -htmldir /www/acct/`uname -n`

Edit /etc/account.conf to fit your setup. Some things can also be set later
at the command line.

If you want to use the HTML output you should create a reference
to the generated page from one of your existing pages. This should
look like

<a href="acct/index.html"> Accounting summary</a> (updated daily)

Of course, you have to adjust the anchor to match your HTML location.
Also copy the "showacct" script to you cgi-bin directory or it won't work.

To test the script, edit the "test" file, and do, as normal user
(so you can't mess up any important files):

./test

and watch for errors. If no error occurs, you should be able to view
the resulting HTML file by doing 'lynx /some/where/index.html'.

Installation - account.isdn
===========================

Browse through the Makefile and adjust the configuration if necessary.
Then simply type 'make install.isdn'.

By default the script will be installed in /usr/local/sbin.

Call 'crontab -e' and insert an entry like:

# At 01:00 monthly: ISDN summary
00 01 1 * * /usr/local/sbin/account.isdn -html

If you want to use the HTML output you should create a reference
to the generated page from one of your existing pages. This should
look like

<a href="isdn/index.html"> ISDN report</a> (updated monthly)

Of course, you have to adjust the anchor to match your HTML location.

To test the script, copy the ISDN logfile to a safe place, and do,
as normal user (so you can't mess up any important files), something like:

./account.isdn -htmldir . -logfile /safe/place/isdn.log

and watch for errors. If no error occurs, you should be able to view
the resulting HTML file by doing 'lynx index.html'.

Uninstallation
==============

There is also an uninstall option. Type "make uninstall" if you want to get
rid of acctsum. This doesn't remove the configuration file automatically.
