[KLUG Members] Executing a root program when a file changes
Patrick Mc Govern
members@kalamazoolinux.org
Thu, 25 Oct 2001 22:35:20 -0400
This is a multi-part message in MIME format.
------=_NextPart_000_000D_01C15DA5.54624D40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am writing a root shell script to maintain a log file. My preference =
is to be able to execute this script when the log file changes, but no =
more than once a day. I don't want to start a daemon to watch for this =
event. Is there a command (like "logger"??) or tool that I can use to =
catch or wait for this changed state and execute the root program?
Pat
------=_NextPart_000_000D_01C15DA5.54624D40
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I am writing a root shell =
script to maintain a=20
log file. My preference is to be able to execute this script when =
the log=20
file changes, but no more than once a day. I don't =
want to=20
start a daemon to watch for this event. Is there a command (like=20
"logger"??) or tool that I can use to catch or wait for this changed =
state and=20
execute the root program?<BR>Pat</FONT></DIV></BODY></HTML>
------=_NextPart_000_000D_01C15DA5.54624D40--