mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 02:34:53 +01:00
bitwarden
This commit is contained in:
@@ -87,16 +87,8 @@ try:
|
||||
hm = socket.gethostbyaddr("omv.home.lan")
|
||||
HOST_UP = os.system(f"ping -c 1 -w 2 omv.home.lan") == 0
|
||||
print(HOST_UP)
|
||||
HOST_UP = os.system(f"ping -c 1 -w 2 morefine.home.lan") == 0
|
||||
print(HOST_UP)
|
||||
|
||||
print(hm)
|
||||
ret = os.system(f"ping -c 3 -w 2 morefine.home.lan")
|
||||
print(ret)
|
||||
if ret != 0:
|
||||
print("Ip address responding")
|
||||
else:
|
||||
print("Unknown host")
|
||||
if not HOST_UP:
|
||||
print("Backup host down")
|
||||
sys.exit()
|
||||
except socket.herror:
|
||||
print("Unknown host")
|
||||
|
||||
Reference in New Issue
Block a user