Hello,
I have lsof installed on a couple of DEC's running DU 3.2b,
and a heap of sgi's. On the DU machines it does not produce the
names of files, just the device names. This is useless.
eg
on SGI(edited)
sgi>lsof -u boc
COMMAND PID USER FD TYPE DEVICE SIZE/OFF INODE NAME
sh 3161 boc 4r VREG 5, 3 2500 2 /usr/staff/boc/.elm/aliases.dir
sh 3161 boc 5r VREG 5, 3 2500 40 /usr/staff/boc/.elm/aliases.pag
sh 3161 boc 6r VREG 5, 3 2500 2 /usr/staff/boc/.elm/aliases
ex 3162 boc cwd VDIR 5, 3 2500 10 /usr/staff/boc/Mail
on DU(edited)
DEC>lsof -u boc
lsof: WARNING: name cache truncated at 10240 entries
COMMAND PID USER FD TYPE DEVICE SIZE/OFF INODE NAME
tcsh 15663 boc cwd VDIR 11, 6 5632 1352414 /usr (/dev/re0g)
tcsh 15663 boc txt VREG 11, 6 499712 1605194 /usr -- tcsh
tcsh 15663 boc txt VREG 11, 0 172032 214 / (/dev/re0a)
tcsh 15663 boc txt VREG 11, 6 1630208 414724 /usr (/dev/re0g)
lsof on a file works, eg
on DU
DEC>lsof /usr/staff/boc/.elm/aliases
COMMAND PID USER FD TYPE DEVICE SIZE/OFF INODE NAME
elm 23216 boc 6r VREG 11, 6 336 1652125 /usr/staff/boc/.elm/aliases
on SGI
SGI>lsof /usr/staff/boc/.elm/aliases
COMMAND PID USER FD TYPE DEVICE SIZE/OFF INODE NAME
elm 3828 boc 6r VREG 5, 3 2500 2 /usr/staff/boc/.elm/aliases
so the information must be there, but I must have either incorrectly compiled it on the DU machine
or need another switch.(I suspect that the "lsof: WARNING: name cache truncated at 10240 entries"
warning has something to do with this)
Can any one give me a hint. lsof is a very usefull tool but I need it to "list open files"
not devices.
TIA
boc
--
------------------------------------------------------------
Brian O'Connor, Unix Systems Consultant
Latrobe University,Bendigo
boc_at_ironbark.bendigo.latrobe.edu.au
------------------------------------------------------------
Received on Fri Jan 10 1997 - 00:30:44 NZDT