#!/bin/csh
# actf accepts as first parameter the accounting file
#   the default file is act_file
#if there is a second parameter present it is assumed to be the
# number of days prior to the date of this script execution
# to begin extraction from the act_file

actf $1 $2 > actf.txt

#actf program produces two extraction files..user_stats and act_stats
#in addition to stdout

sort user_stats > usersum_stats

sort act_stats > machine_stats

rm user_stats act_stats

#program mach has hard-wired input file= machine_stats
mach > mach.txt

#program usersum has hard-wired input file= usersum_stats
usersum > usersum.txt

