This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import json | |
import time | |
from datetime import datetime | |
from urllib import request | |
DELAY_SECONDS = int(sys.argv[1]) if len(sys.argv) > 1 else 60 | |
PING_COUNT = int(sys.argv[2]) if len(sys.argv) > 2 else 1 | |
PING_DELAY_SECONDS = int(sys.argv[3]) if len(sys.argv) > 3 else 1 |