Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- MESSAGES = "tail /var/log/messages"
- SPACE = "df -h"
- cmds = [MESSAGES, SPACE]
- count=0
- for cmd in cmds:
- count += 1
- print "Running Command Number %s" % count
- subprocess.call(cmd, shell=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement