Files
python_skripte/test_skripte/read_logging.py

9 lines
190 B
Python

#! /usr/bin/env python3
with open("/var/log/pull_and_push.log", "r") as log:
for line in log:
print(line)
with open("testfile", "w") as test:
print("ksskkdk", file=test)