Skip to content

Instantly share code, notes, and snippets.

@brokendish
Created March 27, 2016 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brokendish/0694640bac789e7cd25f to your computer and use it in GitHub Desktop.
Save brokendish/0694640bac789e7cd25f to your computer and use it in GitHub Desktop.
#----------------------------------------------------
#システムのコマンドを実行
#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