Hi, I've done this app. What I do is put into a file the output of ls -lR /directory_to_watch.
Then use diff to compare the results. This gives the advantage that, if a line starts with +, then a new file has been added. If it's -, a file has been deleted :)


$ ls -lR > listing1.txt
$ ls -lR > listing2.txt

$ diff listing1.txt listing2.txt > diff.txt


Of course, this works on a Un*x environment.



-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to