Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

/var/www/virtualhosts/dev.anuary.com/*/*/public/css

Now, I assume this should be as simple as:

/var/www/virtualhosts/dev.anuary.com/*/*/public/css IN_MODIFY,IN_NO_LOOP php /var/www/virtualhosts/dev.anuary.com/test.php $@/$#

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

share|improve this question

1 Answer 1

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/dev.anuary.com/ and adapt the command you are running to do nothing with files that aren't in /var/www/virtualhosts/dev.anuary.com/*/*/public/css

share|improve this answer

Your Answer

 
discard

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.