This file contains hidden or 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
#!/usr/bin/env python3 | |
import paramiko | |
import re | |
from datetime import datetime | |
import argparse | |
import sys | |
from pathlib import Path | |
import time | |
import logging | |
import socket |
This file contains hidden or 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 platform | |
import socket | |
import json | |
import subprocess | |
import time | |
import os | |
def reliable_send(data): | |
jsondata = json.dumps(data) | |
s.send(jsondata.encode()) | |
def reliable_recv(): |