0

I have a text file being written by another process on a server which I want to watch for changes. Each time a change occurs I'd like to read the new data and send it to client . Any suggestions will be valuable . Using Django,Python

Tazim.

1

2 Answers 2

2

If you're using a recent Linux you should look into this:

http://trac.dbzteam.org/pyinotify

How do I watch a file for changes? goes into details for win32

Sign up to request clarification or add additional context in comments.

Comments

0

On Linux a convenient interface for file modification monitoring is Gamin the File Alteration Monitor. Python bindings are provided and they are really easy to use, though they could be documented better (especially the 'magic numbers' returned).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.