Linux® Debugging and Performance Tuning: Tips and …

ret = subprocess.call("ping -c 1 %s" % domain, shell=True) if ret==0: return True. else: return False. def exiting(): # This is a function that is used to clean up all loose ends when # ending this script. This includes, writing the exit to the log # redirecting stdout back to the terminal (or where ever it has to # go and closing the log file. ................
................