in reply to How to know STDOUT associated with a process pid
Perhaps something with fstat (see POSIX for information) could be worked up? According to my man page for the system version of fstat, you can get the device and inode of a specific file descriptor. Perhaps you could then use that with some of the file test operators to find it on the file system.
Be aware, however, that just because you have an inode does not mean that it is linked into the file system. If you open a file, and then unlink it, you can still write to the file pointed to by that inode without it being available from the file system.
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to know STDOUT associated with a process pid
by bgupta (Novice) on Feb 06, 2009 at 18:02 UTC | |
by MidLifeXis (Monsignor) on Feb 06, 2009 at 18:08 UTC |