2011-04-24から1日間の記事一覧
意外とどこにも書かれていないようなので、メモしておきます。 #!/usr/bin/python from subprocess import * output = Popen( [ "vmstat", "1", "10" ], stdout=PIPE ) while True: line = output.stdout.readline() if not line: break print line 下記の方…
意外とどこにも書かれていないようなので、メモしておきます。 #!/usr/bin/python from subprocess import * output = Popen( [ "vmstat", "1", "10" ], stdout=PIPE ) while True: line = output.stdout.readline() if not line: break print line 下記の方…