Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3.8
- import os
- url = "sickness.it"
- exec = os.system("ping -c 1 " + url)
- if exec == 0:
- print (url, "is alive!")
- else:
- print (url, "is down!")
- if exec == 0:
- os.system("traceroute -n " + url)
Add Comment
Please, Sign In to add comment