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?
I get an inode for some logging file like ‘/tmp/logging’ and I want to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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