[CentOS] Detect file change
John Doe
jdmls at yahoo.comTue Jan 26 13:42:38 UTC 2010
- Previous message: [CentOS] Detect file change
- Next message: [CentOS] Detect file change
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: Alan Hoffmeister <alangtk at gmail.com> > > You could do something like (untested): > > CHECKFILE="/path/to/checkfile" > > if [! -f $CHECKFILE]; then touch $CHECKFILE; fi > > find -cnewer $CHECKFILE | myscript.sh > > touch $CHECKFILE > I think that now we are on the way, but this script compare the > CHECKFILE whit what? From find man page: -cnewer file File’s status was last changed more recently than file was modified. JD
- Previous message: [CentOS] Detect file change
- Next message: [CentOS] Detect file change
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list