in reply to retrieve filename from filehandle?
zentara told you how to get the file descriptor of your handle. Now, under Linux you can get a symlink to your original file from
/proc/self/fd/$descriptor
I don't know how portable this is to other unices, not to say osen - generally I expect little to zero. Still it may be suitable for you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: retrieve filename from filehandle?
by tirwhan (Abbot) on Jan 16, 2006 at 19:35 UTC | |
|
Re^2: retrieve filename from filehandle?
by Arunbear (Prior) on Aug 09, 2007 at 09:16 UTC |