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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
New File Detection

 



31special
New User

Jul 17, 2008, 11:02 AM

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

Hello,

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.


travs69
Novice

Jul 17, 2008, 11:47 AM

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

Look up readdir and opendir.


31special
New User

Jul 17, 2008, 1:19 PM

Post #3 of 3 (1789 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