I get an inode for some logging file like '/tmp/logging'
and I want to open it via inode, NOT path.
How to do it?
Asked
Active
Viewed 5,208 times
2 Answers
5
Short of a brute-force search of the filesystem for the inode (ex, find / -inum $X
), you can't.
See the discussion here: http://coding.derkeiler.com/Archive/Perl/comp.lang.perl.misc/2006-05/msg02223.html

David Wolever
- 148,955
- 89
- 346
- 502