On Saturday, October 23, 2010 04:27:45 Patrick O'Callaghan wrote: > On Thu, 2010-10-21 at 21:33 -0600, Petrus de Calguarium wrote: > > Fortunately, Suvayu's brilliant script gets around that and manages to > > access the file, even though it is already deleted, while Patrick's > > suggestion of hard linking to it does not work, because it is already > > deleted, unless he also has some ingenious trick up his sleeve to "get a > > handle on" the deleted file. > > Yes, it's a neat trick. However the 'cp' will terminate when it reaches > the end of the input file, even if it's still being written to by the > flash process. That would explain why the output is sometimes truncated. > Getting round that would need a copy process that waits to see if > there's more output, either by polling or by using inotify. IOW > something conceptually similar to "tail -f". Just to follow that idea, would something like tail -f /proc/<pid>/fd/<file_id> > /tmp/flashfile.flv work? (Maybe with a couple more switches to tail, to start from the beginning of the file, etc...) Best, :-) Marko -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines