Why not use lsof?
Are you trying to go as "stock" as possible? Just curious.
The "NAME" field is only present if you *specify a file argument* (i.e. fstat /path/to/some/file) and no -f option. Specifying -f makes "NAME" go away.
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice.
Last edited by rocket357; 31st August 2011 at 03:26 AM.
|