On Mon, Oct 31, 2011 at 2:16 PM, extraspecialbitter <pauldavidmena at 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