Real-time mirroring of files (from Linux to Windows (or maybe cygwin))

mirrorrealtime

How do I make it so that whenever the file blah.pdf on computer A is changed, its copy at computer B is updated? I believe I must setup some daemons on A and B.

A is a Linux system and B is a Windows system.

Motivation: I'm editing and compiling TeX documents on A and it'd be good if I can see the output on B's monitor. Alt-tabbing is kind of pain. Maybe I should really just buy a second monitor or a bigger one.

Best Answer

There are several possibilities. You could script some file replication system like rsync; or you could just share a drive between the two computers, e.g. via SAMBA.

Or just use VNC/RDP/etc. to work on one computer while using the other. Then there's no need to push files around.