Hi Admins,
I just wanted to get some thoughts on how others wrote scripts to handle
these problems.
number 1. write a script that will monitor the sizes of files named
pr.tr* and pr.er* in a directory named /apps/rms/otprod, when they get to be
larger than 1 meg in size. When this occurs then send a email to a group of
users.
The group of user's email addresses will be kept in a seperate file to make
adding and deleting them easier.
This will be executed from a crontab entry that will happen every 5 mins.
number 2. Find files in a directory that have been in that directory for
longer than 15 mins, if so send an email to a group of users, listing out
the file name, size and date time stamp.
Thanks,
Mike Kirkland
mike.kirkland_at_ndchealth.com
Received on Fri Apr 05 2002 - 15:12:57 NZST