CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
New File Detection


New User

Jul 17, 2008, 11:02 AM

Post #1 of 3 (2672 views)
New File Detection Can't Post


I understand the basic concepts of Perl and I'm trying to create a script that will send an email when a new file is found inside an specific directory.

For example, let say I have directory /tmp on my Linux server. The script will scan the contents of that directory every 5 minutes, (i can use cron to run the script every 5 minutes) if the script finds a new file it will send me an email.

Can someone send me in the correct direction on how I can start building this?

Thanks in advanced.


Jul 17, 2008, 11:47 AM

Post #2 of 3 (2669 views)
Re: [31special] New File Detection [In reply to] Can't Post

Look up readdir and opendir.

New User

Jul 17, 2008, 1:19 PM

Post #3 of 3 (2664 views)
Re: [travs69] New File Detection [In reply to] Can't Post

I figured everything out. Thanks for the assistance.

(This post was edited by 31special on Jul 17, 2008, 1:37 PM)


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives