From: "Kirkland, Mike # IHTUL" <mike.kirkland () ndchealth ! com>
To: tru64-unix-managers
Subject: scripting help
Date: Fri, 05 Apr 2002 15:07:40 +0000 [thread overview]
Message-ID: <102653755322232.tru64-unix-managers.marc@archive.invalid> (raw)
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@ndchealth.com
next reply other threads:[~2002-04-05 15:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-05 15:07 Kirkland, Mike # IHTUL [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-03-27 18:51 Scripting help Woods Marc A Contr WRALC/LNXA
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox