undelete open file
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)
Signature · 24 lines
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: [email protected] 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)Quoted 6 lines · Joachim Reichelt
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
where NUM is pid of process having that file open
FD - file descriptor of removed file
Vladimir Saveliev schrieb am 03/10/2004 01:39 PM:
Quoted 5 lines · Joachim Reichelt
Quoted 4 lines
Dear all,
Quoted 10 lines
Quoted 5 lines
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'
Quoted 4 lines
where NUM is pid of process having that file open
FD - file descriptor of removed file
Many thanks!!!
Signature · 24 lines
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: [email protected] 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)