i'm not that good configuring a linux server. So i hope someone can give me a hint for my problem.

I have installed trac for managing projects. It contains a plugin for doxygen. As far as i know i need to generate the doxygen output by myself. So i was thinking if it is possible to start a script when any file in a folder did changed.

Is there any way to get this done by a shell script? Or do i need to create a daemon for this?

link|improve this question
feedback

migrated from stackoverflow.com Oct 17 '11 at 17:57

This question came from our site for professional and enthusiast programmers.

3 Answers

A Makefile and a cron job that runs make every X minutes should suffice. See info make and man 5 crontab.

link|improve this answer
This is essentially what I do on my setup and it works great. If you'd prefer, you can use a shell script instead of make (that's what I do). – bta Oct 17 '11 at 17:59
feedback

Use tripwire or your RCS to observe when files have changed. When that happens, fire off your script to do something

link|improve this answer
feedback

Inotify is your friend.

Check out something like inotify-tools: https://github.com/rvoicilas/inotify-tools

link|improve this answer
feedback

Your Answer

 
or
required, but never shown