SyntaxFix
Write A Post
Hire A Developer
Questions
Another option if you don't have Python 2.6:
import commands n = commands.getoutput("grep -c processor /proc/cpuinfo")