P is for Practical | |
PerlMonks |
Directory Questions - How would I do this?by jdlev (Scribe) |
on Jan 20, 2009 at 19:42 UTC ( [id://737652]=perlquestion: print w/replies, xml ) | Need Help?? |
jdlev has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I've got a unique situation. I'm trying to get perl to monitor a database file. Basically, I'm starting the program and having it sleep 30 minute and then check the database again for a new record.
What I need to do is any time there is a new record found, it creates a file. ---Everything works up to this point--- The part I don't know how to do is have another program monitor that folder where the new files are created. When a new file is created, it needs to be emailed to another person. I've got the emailing attachments side of things down. I don't know how to get a perl program to monitor the file folder, and when a new file pops up, it will email only that file to the customer. Any help is appreciated!
I love it when a program comes together - jdhannibal
Back to
Seekers of Perl Wisdom
|
|