<div dir="auto"><div><br><br><div data-smartmail="gmail_signature"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 17, 2017 3:41 PM, "Stewart C. Russell via talk" <<a href="mailto:talk@gtalug.org" target="_blank">talk@gtalug.org</a>> wrote:<br type="attribution"><blockquote class="m_-3757893830766485357quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I need to watch a folder on a network share (a scanner) and see when new<br>
files are created. There are a couple of special things about this location:<br>
<br><snip><br><br>
I was naïvely hoping for a mechanism that would report “Hey, you have a<br>
new file called $filename” but that seems to have been a pipedream. What<br>
do People Who Actually Know What They're Doing use, please?<br>
<br>If all you need is a count, maybe you could tee the scanner output and drop one copy in the bit bucket. At the same time you grep ps's output for the process writing to /dev/null. Snarf the PID to a count file, one PID to a line. You don't get a timestamp but you do get unique ID and you can keep a running total.</blockquote></div></div></div><div dir="auto"><br></div><div dir="auto"></div><div dir="auto">Russell</div><div dir="auto"><br></div><div dir="auto"></div><div dir="auto"></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_-3757893830766485357quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="font-family:sans-serif">Sent from semi-resurrected Moto XT1060</span><br style="font-family:sans-serif"><span style="font-family:sans-serif">Almost ready to mod.</span></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_-3757893830766485357quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
cheers,<br>
<br>
 Stewart<br>
<br>
---<br>
Talk Mailing List<br>
<a href="mailto:talk@gtalug.org" target="_blank">talk@gtalug.org</a><br>
<a href="https://gtalug.org/mailman/listinfo/talk" rel="noreferrer" target="_blank">https://gtalug.org/mailman/lis<wbr>tinfo/talk</a><br>
</blockquote></div><br></div></div></div>