I get an inode for some log file, for example '/ tmp / logging'and I want to open it via inode, not the path.How to do it?
With the exception of brute force searches in the file system for inode (ex, find / -inum $X), you cannot.
find / -inum $X
See the discussion here: http://coding.derkeiler.com/Archive/Perl/comp.lang.perl.misc/2006-05/msg02223.html
In general, you cannot do this from user space, because system procedures take a path as an argument.
Take a look at this post.