On Tue, Jan 14, 2014 at 2:42 AM, William Ray Wing <w...@mac.com> wrote:
> The one I've used is to spawn a subprocess and run the "ifconfig" command 
> with no arguments (which doesn't require any special privileges).

Very small caveat: On some systems, running ifconfig doesn't require
privileges, but it's not in the unprivileged user's default path (it's
in root's path though). I've seen this on Debian Linux, for instance.
So you may need to explicitly call /sbin/ifconfig or whereever it's
stored.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to