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