Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/usr/bin/env python
  2. MESSAGES = "tail /var/log/messages"
  3. SPACE = "df -h"
  4.  
  5. cmds = [MESSAGES, SPACE]
  6.  
  7. count=0
  8. for cmd in cmds:
  9. count += 1
  10. print "Running Command Number %s" % count
  11. subprocess.call(cmd, shell=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement