This blog is an improvement to the script I mentioned in Python Script for Autoshutdown. But soon after months to follow, my ISP has blocked pinging to internet, and since my logic was to try to ping Google servers; I had to alter my logic to use HTTP connection.
I have changed the script to use HTTP instead of just pinging. This is my code in Python.
As always, please feel free to suggest any improvement.
I have changed the script to use HTTP instead of just pinging. This is my code in Python.
As always, please feel free to suggest any improvement.
Comments
Post a Comment