Hi, Is there any polling mechanism in perl ? Following is my problem.. my program has to wait (poll) on particular folder... If any file arrived on that folder, my main program has to invoke another program...
In Unix, we have poll() system call for waiting on particular event ? is there any similar thing in perl to wait on particular event ? if event occurs trigger some job.. following is my algorithm... i want to implement in better way... here file arrived means, completely transfered... Files will be FTPed to "C:\temp" on my local system... once that FTP is completed, i want to know... But i don't want to know in the middle of FTP. I want to know after FTP done... I think here we need unix "lsof" command? Does anybody have any idea ? about that? -------- while(1) { if (file arrived on "C:\temp\") { mail me the file name. } } -------- __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]