Messages in this thread |  | | Date | Wed, 6 Nov 1996 17:00:13 +0100 (MEZ) | From | Michael Weller <> | Subject | Re: Missing file ??? |
| |
On Tue, 5 Nov 1996, David C. Wright wrote:
> in /proc/self/fd the files 0, 1, 2, and 255 are showen linked to > [0811]:9271. [0811]:9271 does not exist. > > Please tell me how to find out what it should be. > > The program 'Yard' needs it for some reason.
Do not believe in anything on /proc to be real at all! I'd explain this entry to be the file represented by inode 9271 on the file system mounted from block device #0811 (hex; should be sda10, I think). And /proc tells you that unix file descriptors 0, 1, 2 and 255 are redirected to this file.
BTW, actually the file descriptors of the calling process itself (probably the ls command you used). Yard or your shell or any other process will see completely different files in /proc/self (namely its own). Check /proc/<process id> to find out about other processes.
It's not easy to find the/one filename pointing to an inode (if one exits at all). You should be able to find it by scanning the filesystem with ls or find (both have options to list inode numbers).
Apart from that (given proper access rights) you should be able to simply read/write from these faked links in /proc/self/fd even if there is no [0811]9271 file at all (because /proc is even more magic than an ordinary UNIX fs is already).
Probably you should ask the maintainers of Yard or give some more details what you actually want to do to the list s.t. we can find out what goes on.
Michael.
(eowmob@exp-math.uni-essen.de or eowmob@pollux.exp-math.uni-essen.de Please do not use my vm or de0hrz1a accounts anymore. In case of real problems reaching me try mat42b@spi.power.uni-essen.de instead.)
|  |