In Debian, I double checked my ssl port with fuser, which is similar:
fuser -v 443/tcp
No idea how to do it programmatically except for calling one of these
with system(). Can anyone else believe that these unix tools just
don't take a version number request? I would love to be able to pass
1.0 to lsof and even if it's version 3.0 or whatever, it would return
a 1.0 formatted response. This should have been a requirement to get
a tool bundled into a distribution, oh, 30 years ago. Hope this helps,
------------------------------------------------------------------------
Zack Morris Z Sculpt Entertainment This Space
email@hidden http://www.zsculpt.com For Rent
------------------------------------------------------------------------
If the doors of perception were cleansed, everything would appear to man
as it is, infinite. -William Blake, The Marriage of Heaven and Hell