On Mon, Oct 31, 2011 at 2:16 PM, extraspecialbitter
<pauldavidm...@gmail.com> wrote:
>    cmd = 'ethtool %interface'

That is not Python syntax for string interpolation.  Try:
cmd = 'ethtool %s' % interface

On a side note, os.popen is deprecated.  You should look into using
the higher-level subprocess.check_output instead.

Cheers,
Ian
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to