Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#----------------------------------------------------
#システムのコマンドを実行
#Ctl+Cで止められる
#----------------------------------------------------
#!/usr/bin/env python
import subprocess
for i in xrange(100):
cmd = "tail -f /var/log/syslog | cat "
subprocess.call(cmd, shell=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment