Skip to content

Instantly share code, notes, and snippets.

@mreid-moz
mreid-moz / backfill.py
Created June 14, 2012 18:06
Python script to run dated pig jobs
#!/usr/bin/env python
# encoding: utf-8
import sys
import getopt
from datetime import datetime, timedelta
from subprocess import call
help_message = '''
-h, --help
-s, --start_date <start_date>