|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Interesting problem - AdvNotifyby Foggy Bottoms (Monk) |
| on Aug 20, 2003 at 11:18 UTC ( [id://285211]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.Foggy Bottoms has asked for the wisdom of the Perl Monks concerning the following question:
Hi folks,
I posted a little earlier a question regarding regexes and a ban/force folder search... The main aim of my code is to detect changes in files/folders but since a hard drive can get pretty big, the idea was to have a force/ban folder. The default is to scan everything, but then if you don't want to scan c:\winnt then you can ban that folder and its subfolders. And in the case you'd want to scan one of its subfolders then you can add it to the force list... I've now completed my code and it seemed to be working fine until I ran a little very simple test : Test : while my code is running I start up a new DOS prompt (I'm using WinNT 4.0) and do the following :The winnt folder is banned but the personal one isn't so the scan is activated... When I do the first mkdir I get in the other window (the perl one) the following : Output :But when I run the rmdir and the last mkdir, it fails... (it doesn't return anything but the while print...). Here's my bit of code : and the call to the function : I've a feeling there's a memory problem with AdvNotify : perhaps I should clean up after its use like shutting it down or deleting change detections after I dealt with them (or is there no need ?). Thanks for your help...
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||