On 23 October 2010 10:10, Marko Vojinovic <vvma...@gmail.com> wrote:
> As for the <pid>, my guess is that the process that opens the file for writing
> is the only one allowed to actually write to it, since otherwise one can get a
> race condition and data might get corrupted. Once that process dies, tail will
> die along with it, leaving a clean /tmp/flashfile.flv as a result. At least 
> that
> is my theory. ;-)
>
> Now, all that is needed is that someone write a script and try it out. I am
> not very versatile with extracting <pid> and <file_id> and such stuff, but
> otherwise the script should be trivial. :-)

You can try it with the shell function I posted earlier in the thread.
Putting your tail command instead of the cp should be a good test. ;)

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Reply via email to