#/bin/python3 import os import sys from pathlib import Path, PurePath import tools import commands DIR=os.path.dirname(os.path.abspath( __file__ )) LOG_FILE=PurePath("log.txt") LOG_PATH_FILE=Path(DIR / LOG_FILE) if not os.path.exists(LOG_PATH_FILE): os.mknod(LOG_PATH_FILE) OFFLINE_COUNT=tools.offline_counts(LOG_PATH_FILE) OFFLINE_COUNT_TRESHOLD=4 LINES_MAX=11000 LINES_MIN=6000 LINES_COUNT=commands.file_len(LOG_PATH_FILE) HOSTS = ["80.67.169.12", "neodarz.net"] INTERFACE = "wwan0"