[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] file modification time via shell script
- Subject: [ale] file modification time via shell script
- From: greg.freemyer at gmail.com (Greg Freemyer)
- Date: Fri, 3 Aug 2007 15:43:54 -0400
- In-reply-to: <1186169094.23034.3.camel@localhost>
- References: <1186169094.23034.3.camel@localhost>
On 8/3/07, Jim Popovitch <yahoo at jimpop.com> wrote:
> I'v got an electronic voting machine that I need some help hacking on..
> NOT! (but I did get your attention...) ;-)
>
> Here's what I am trying to do however: I need to run a script (via
> cron) that first determines if a log file changed since the last time
> the script ran before it does further processing. Ideas?
>
>From the top of my head, (ie. no testing even of syntax)
WORK=`find <logfile> -newer /usr/local/share/my-flag-file -print`
touch /usr/local/share/my-flag-file
if [ $WORK == "" ]
exit
real work
Greg
--
Greg Freemyer
The Norcross Group
Forensics for the 21st Century