On Tue, May 20, 2008 at 12:26 PM, Skye <[EMAIL PROTECTED]> wrote: > How do I access the sysctl(3) call from Python on BSD? > > Specifically I want to retrieve: > > $ sysctl -d net.inet.ip.stats > net.inet.ip.stats: IP statistics (struct ipstat, netinet/ip_var.h) > > So I'll need some way of getting to struct ipstat from Python as well > > Thanks, > Skye >
You could use subprocess.Popen to run the command yourself and just parse the output. http://docs.python.org/lib/node528.html > > -- > http://mail.python.org/mailman/listinfo/python-list >
-- http://mail.python.org/mailman/listinfo/python-list