Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
new file written 'trigger'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
starbecks
n00b
n00b


Joined: 30 Mar 2003
Posts: 45

PostPosted: Sat Jul 26, 2003 12:21 am    Post subject: new file written 'trigger' Reply with quote

I have a directory that I need to monitor.

Is there a way to 'fire an event' when a user creates a new file in a specific directory? ... behave like a database trigger, but for files on a drive.

I could probably write a script to 'ls' and compare it to the previous 'ls', and run it periodically. Before I recreate any wheel, I was wondering if there was already something for that.

Thanks in advance
Back to top
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Sat Jul 26, 2003 2:39 am    Post subject: Reply with quote

http://freshmeat.net/search/?q=monitor+changed+files§ion=projects&x=0&y=0
Back to top
View user's profile Send private message
watersb
Apprentice
Apprentice


Joined: 04 Sep 2002
Posts: 297
Location: take a left turn in Tesuque

PostPosted: Sat Jul 26, 2003 3:18 am    Post subject: Reply with quote

I thought that this is what FAM is for (fam_oss, from SGI, part of GNOME)...

# emerge fam-oss

http://oss.sgi.com/projects/fam
Back to top
View user's profile Send private message
starbecks
n00b
n00b


Joined: 30 Mar 2003
Posts: 45

PostPosted: Sat Jul 26, 2003 3:02 pm    Post subject: Reply with quote

Thank you for the replies.

Pythonhead, good point... I should search freshmeat and sorceforge before posting. Thanks for the link.

watersb, I found FAM is installed on my home pc. I'll confess I didn't know it was there, probably used in KDE... I'll read up and see if it is something I want to intall on a server. A quick glance shows this may be more than what I need. But, once running, I'm sure I'd find a lot of uses for it. <grin>
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum