Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/python2
- from subprocess import Popen, PIPE, STDOUT
- b64_f = open('/tmp/butterfly.b64', 'r');
- b64_s = ''
- for line in b64_f:
- b64_s += line
- p = Popen(['ConsoleAI'], stdout=PIPE, stdin=PIPE, stderr=STDOUT, shell=True)
- console_stdout = p.communicate(input=b64_s)[0]
- print(console_stdout);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement