icecubegr
Programmer
- Jul 27, 2006
- 26
Hi,
I want to find the opened files for a process. I type the command lsof -p pid but I have the following problems:
1. Instead of getting the real file name, I get the file system name.
2. The inode file for files in a specific file system is '0', but for other file system are displayed.
== Example ==============================
$lsof -p98778
lsof: WARNING: compiled for AIX version 5.1.0.0; this is 5.3.0.0.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
jsh 98778 r07close cwd VDIR 42,4 0 0 /gl (/dev/fslv01)
jsh 98778 r07close 1w VREG 42,4 0 0 /gl (/dev/fslv01)
jsh 98778 r07close 3u VREG 42,2 21120 108577 /db5 (/dev/lv00)
jsh 98778 r07close 4u VREG 42,2 0 108579 /db5 (/dev/lv00)
jsh 98778 r07close 6u VREG 42,2 87 92161 /db5 (/dev/lv00)
jsh 98778 r07close 11u VREG 42,4 0 0 /gl (/dev/fslv01)
===========================
Can anyone help me on those problems?
Regards,
George
I want to find the opened files for a process. I type the command lsof -p pid but I have the following problems:
1. Instead of getting the real file name, I get the file system name.
2. The inode file for files in a specific file system is '0', but for other file system are displayed.
== Example ==============================
$lsof -p98778
lsof: WARNING: compiled for AIX version 5.1.0.0; this is 5.3.0.0.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
jsh 98778 r07close cwd VDIR 42,4 0 0 /gl (/dev/fslv01)
jsh 98778 r07close 1w VREG 42,4 0 0 /gl (/dev/fslv01)
jsh 98778 r07close 3u VREG 42,2 21120 108577 /db5 (/dev/lv00)
jsh 98778 r07close 4u VREG 42,2 0 108579 /db5 (/dev/lv00)
jsh 98778 r07close 6u VREG 42,2 87 92161 /db5 (/dev/lv00)
jsh 98778 r07close 11u VREG 42,4 0 0 /gl (/dev/fslv01)
===========================
Can anyone help me on those problems?
Regards,
George