Skip to main content

Posts

Showing posts from April, 2013

Python script for Autoshutdown v2

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.