Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th May 2009, 15:45
dpicella dpicella is offline
Senior Member
 
Join Date: Apr 2009
Posts: 116
Thanks: 9
Thanked 8 Times in 7 Posts
Question Monitor and FTP directory recursively for file uploads

I am running a Fedora 10 Server with websites managed by ISPConfig 3.

I have an account that will be loading files in an FTP directory. I need to send notifications (email would be fine or I could run a command) when new files are uploaded in the directory tree. I thought of making scripts to do this myself, but it seems that linux may have tools already...

I ran accrosss a program called dnotify which apparently was adopted by some linux distributions for a time. I do not believe that it monitors recursively. It also seems that dnotify was replaced by and upgraded project called inotify at some point.

On my server, neither of these are installed or available through the default package manager - yum. I would have to patch my kernel to do so. I am not sure it is worth the trouble if there are better tools to get the job done.

Does anyone have any experience with this?

Cheers!
Reply With Quote
Sponsored Links
  #2  
Old 28th May 2009, 11:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

This tutorial might be of interest: http://www.howtoforge.com/triggering...es-with-incron
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
dpicella (28th May 2009)
  #3  
Old 28th May 2009, 17:17
dpicella dpicella is offline
Senior Member
 
Join Date: Apr 2009
Posts: 116
Thanks: 9
Thanked 8 Times in 7 Posts
 
Default

Great! That is just what I was looking for.

I was able to install incron on Fedora 10 using
Code:
yum install incron
I then started the incron daemon
Code:
service incrond start
To turn on the daemon at boot
Code:
chkconfig incrond on
I was able to install a monitor for new files in a directory that sends an email notice and it works great.

There is more information about incron at:
http://www.linux.com/archive/feature/144666

The only problem I have is that it does not monitor recursively, but I can easily work around that now.

Cheers!
Reply With Quote
The Following User Says Thank You to dpicella For This Useful Post:
falko (29th May 2009)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.