Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from subprocess import Popen, PIPE
- import sys
- assert all(len(s) == 8 for s in sys.argv[1:])
- with Popen("./C", stdin=PIPE) as proc:
- inp = bytes([int(s, 2) for s in sys.argv[1:]])
- proc.communicate(inp)
- print("RETURN:", proc.returncode)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement