from subprocess import Popen, PIPEf = Popen(('uname', '-a'), stdout=PIPE).stdoutdata = f.readline()f.close()print data, f = Popen('who', stdout=PIPE).stdoutdata = [ eachLine.strip() for eachLine in f ]f.close()for eachLine in data: print eachLine
Name (required)
email (will not be published) (required)
Website