#!/usr/bin/env python #coding=utf8 import time,os,sched,urllib,httplib import smtplib import string schedule = sched.scheduler(time.time, time.sleep) def perform_command(self, inc): schedule.enter(inc, 0, perform_command, (self, inc)) #os.system(cmd)