|
From: Allen S. R. <as...@uf...> - 2012-11-16 20:31:56
|
On 11/16/2012 03:25 PM, Karl O. Pinc wrote:
> To avoid the race condition the following needs to happen:
> Establish wait.
> Then finish sending data from script A to script B.
Exactly; Establish the wait, finish what you're doing, and then act on
the output.
In perl idiom:
$foo = new FileHandle("inotifywait -whateveroptions |");
&Finish_sending_data();
and then wait for inotify's output.
- Allen S. Rout
|