Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import os
  4. import mailutil
  5. import datetime
  6. import time
  7. import sys
  8. from string import Template
  9.  
  10. days =  sys.argv[1] if (len(sys.argv) > 1) else '1'
  11. os.environ["JAVA_HOME"] = "/usr/lib/jvm/java-6-sun"
  12.  
  13. today = datetime.date.today()
  14. minus1 = today-datetime.timedelta(days=1)
  15. yesterday = minus1.strftime("%Y-%m-%d")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement