Netstat in python. Does it's possible?

Jorgen Grahn grahn+nntp at snipabacken.dyndns.org
Mon Feb 13 17:19:54 EST 2006


On Sun, 12 Feb 2006 22:56:06 +0100, Martin v. Löwis <martin at v.loewis.de> wrote:
> Jorgen Grahn wrote:
>> I was thinking mostly about /proc, /sys and related file systems. I have a
>> feeling parts of them they change quite frequently under Linux, and of
>> course under other Unices they may look completely different, or be absent.
>> 
>> Like Mr Laird said elsewhere, the best thing might be to popen() netstat
>> and parse its output.
>
> Hmm. And the netstat output cannot change, and is identical across all
> systems?

I was going to mention that complication, but I didn't want to depress the
original poster any more ...

/Jorgen

-- 
  // Jorgen Grahn <grahn@        Ph'nglui mglw'nafh Cthulhu
\X/     snipabacken.dyndns.org>  R'lyeh wgah'nagl fhtagn!



More information about the Python-list mailing list