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 have a legacy application that for printing purposes, sends its output to a file in different directories. What's written into directory X is printed in printer X; what's written into directory Y is printed in printer Y; and what's written into directory Z is converted into a PDF, and the PDF handler program is launched.

This setup works fine in Windows.

I'd like to replicate it in Ubuntu Linux. So I'd like a daemon that would monitor a directory, so that it would send whatever is written into that directory to a specific printer queue.

Any help would be greatly appreciated.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

incron, it's in Ubuntu's universe repository

share|improve this answer
    
incron did the trick! BTW, I found this site linux.die.net/man/8/incrond to have clearer documentation than inotify.aiken.cz/?section=incron&page=about&lang=en –  Rolando Jul 7 '10 at 2:49

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.