Mini Shell

Direktori : /opt/imh-python/lib/python3.9/site-packages/pyroute2/ipdb/
Upload File :
Current File : //opt/imh-python/lib/python3.9/site-packages/pyroute2/ipdb/utils.py

import os
import subprocess


def test_reachable_icmp(host):
    with open(os.devnull, 'w') as devnull:
        return subprocess.check_call(
            ['ping', '-c', '1', host], stdout=devnull, stderr=devnull
        )

Zerion Mini Shell 1.0