[LUNI] What to do with an rsynced file? -- Advice Sought
Gordon A. Knoppe
gordon at knoppe.net
Fri Dec 28 10:59:04 CST 2007
Have you looked into iNotify?
Brian Sobolak wrote:
> On Dec 24, 2007 5:06 PM, Richard Reina <richard at rushlogistics.com> wrote:
>> I have files that are periodically transfered over to a local pc. I would like that these files to be sent to a local serial port. I now do this manually via cat /dev/ttyD0. I was looking for advice on the best way to automate this. I though about perhaps creating a perl script that checks the local directory every ten seconds or so, but thought that there may be a better way. I was wondering if anyone had any experience with something similar that might lead to ideas, do and don't to this sort of situation?
> Umm, use cron to run cat /dev/ttyD0 every 10 seconds?
> If you need more tricky logic than that, have cron call a bash/perl
> script to add smarts.
> Brian Sobolak
More information about the luni