Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import sys
- def read_one_line_of_input():
- raw = sys.stdin.readline()
- return raw.strip()
- with open('/var/log/agiscript.log', 'w') as log:
- line = read_one_line_of_input()
- while line:
- log.write(f"READ: '{line}'\n")
- line = read_one_line_of_input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement