On Sun, 2008-03-09 at 18:40 +1100, david wrote: > #!/bin/bash > if [ -N /some/directory/ ] ; then > echo "change" > else > echo "no change" > fi > > The object is to identify changes within a directory. This tells me if > there are any new or deleted files, but not if files within the > directory are modified. > > Is there a trivial way to do it?
In script something like this: ls -l >file1 ls -l >file2 diff file1 file2 In perl use File::Monitor; -- Ken Foskey FOSS developer -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
