From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joachim Reichelt Subject: Re: undelete open file Date: Wed, 10 Mar 2004 14:57:09 +0100 Message-ID: <404F1EB5.2010008@gbf.de> References: <404F0899.2040000@gbf.de> <1078922361.9476.120.camel@tribesman.namesys.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <1078922361.9476.120.camel@tribesman.namesys.com> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Vladimir Saveliev Cc: reiserfs-list@namesys.com Vladimir Saveliev schrieb am 03/10/2004 01:39 PM: >On Wed, 2004-03-10 at 15:22, Joachim Reichelt wrote: > > >>Dear all, >> >>is there a way to undelete a file, that is still open? >>lsof -C ... gives >>Bragi 29736 jre 15r REG 3,8 6828032 480646 >>/home/jre/susanne_h/Model.md_ntr.mdcrd (deleted) >> >> > >cat /proc/NUM/fd/FD > copy-of-file > > > a less /proc/NUM/fd/FD will lock the file, till all jobs are done. Then I'll do the 'cat' >where NUM is pid of process having that file open >FD - file descriptor of removed file > > Many thanks!!! -- Mit freundlichen Gruessen Best Regards Joachim Reichelt WWW: http://www.gbf.de _/_/_/ _/_/_/ _/_/_/_/ WWW: http://www.gbf.de/sb _/ _/ _/ _/ _/ _/ _/ _/ _/ Mascheroder Weg 1 _/ _/ _/_/_/ _/_/_/ D-38124 Braunschweig _/ _/ _/ _/ _/ Tel: +(49) 531 6181 352 _/ _/ _/ _/ _/ FAX: +(49) 531 2612 388 _/_/_/ _/_/_/ _/ SB - Strukturbiologie GBF - Gesellschaft fuer Biotechnologische Forschung German Research Centre for Biotechnology See me at: EMAIL: REICHELT@gbf.de WWW: http://www.gbf.de/sb/Reichelt.htm -- Disclaimer -- Standard > Keyword : Opinions, my own, nobody else's, whatsoever ... Man muss sich notfalls jemand mieten, hat man an Geist selbst nichts zu bieten! (Heinz Erhardt)