* scripting help
@ 2002-04-05 15:07 Kirkland, Mike # IHTUL
0 siblings, 0 replies; 2+ messages in thread
From: Kirkland, Mike # IHTUL @ 2002-04-05 15:07 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Scripting help
@ 2002-03-27 18:51 Woods Marc A Contr WRALC/LNXA
0 siblings, 0 replies; 2+ messages in thread
From: Woods Marc A Contr WRALC/LNXA @ 2002-03-27 18:51 UTC (permalink / raw)
To: tru64-unix-managers
I was wondering if I could solicit some scripting help.
I want to be able to
ps | grep <command>
and from the results send a kill command to kill all of the results
essentially
if I were to run
ps agh | grep shell | grep -v "grep shell"
a fictitious result would appear listing a few different headers for my
matching grep, from the list that would return I would like to kill those
processes....I just don't know how to load the results up as a variable or
something....
Thanks in advance
Marc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-05 15:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-05 15:07 scripting help Kirkland, Mike # IHTUL
-- strict thread matches above, loose matches on Subject: below --
2002-03-27 18:51 Scripting help Woods Marc A Contr WRALC/LNXA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox