J
Jack
Hi
I use activestate and they dont support with my version of perl Cpan
directory watcher.. is there a better way to watch a directory for a
file and then process it than the below, perl, shareware, or through a
low cost product ? The infinite loop code below causes my windows
server 2003 to have strange behavior after its been running a few days
(blinking screen, requiring reboot, etc). I know its related b/c when
this service is stopped, the system is fine. I checked File Monitor
also but you still need something that continuously checks something,
the array in its case...
while (1) {
@filelist=();
@filelist = split(/\n/, $var = `dir /A-D /B /O-D e:\\mail\inboxes\
\testbox`);
foreach (@filelist) {
dobasicstuff();
movefile();
sleep 3;
}
I use activestate and they dont support with my version of perl Cpan
directory watcher.. is there a better way to watch a directory for a
file and then process it than the below, perl, shareware, or through a
low cost product ? The infinite loop code below causes my windows
server 2003 to have strange behavior after its been running a few days
(blinking screen, requiring reboot, etc). I know its related b/c when
this service is stopped, the system is fine. I checked File Monitor
also but you still need something that continuously checks something,
the array in its case...
while (1) {
@filelist=();
@filelist = split(/\n/, $var = `dir /A-D /B /O-D e:\\mail\inboxes\
\testbox`);
foreach (@filelist) {
dobasicstuff();
movefile();
sleep 3;
}