Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to create an entry in /etc/incron.d/ that'd monitor all changes done under the following directories:


Now, I assume this should be as simple as:

/var/www/virtualhosts/*/*/public/css IN_MODIFY,IN_NO_LOOP php /var/www/virtualhosts/ $@/$#

However, the latter doesn't work. I cannot list every directory simply because they change quite irregularly.

share|improve this question

No, I don't think this is possible.
The path must be a absolute path.

There is also Watcher, I'm unsure if it supports wild-cards in the path, from what I understand of it's documentation, it doesn't.

But you could use it to recursively monitor /var/www/virtualhosts/ and adapt the command you are running to do nothing with files that aren't in /var/www/virtualhosts/*/*/public/css

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.