| Mike Frysinger | c7f1593 | 2013-03-20 13:43:35 -0400 | [diff] [blame] | 1 | #!/usr/bin/python | 
| asharif | 3c6b93b | 2013-02-15 05:21:03 +0000 | [diff] [blame] | 2 | # | 
|  | 3 | # Copyright 2010 Google Inc. All Rights Reserved. | 
|  | 4 |  | 
|  | 5 | """ | 
|  | 6 | This simulates a real job by producing a lot of output. | 
|  | 7 |  | 
|  | 8 | """ | 
|  | 9 |  | 
|  | 10 | __author__ = "asharif@google.com (Ahmad Sharif)" | 
|  | 11 |  | 
|  | 12 | import optparse | 
|  | 13 | import os | 
|  | 14 | import re | 
|  | 15 | import sys | 
|  | 16 | import time | 
|  | 17 | from utils import command_executer | 
|  | 18 |  | 
|  | 19 |  | 
|  | 20 | def Main(argv): | 
|  | 21 | """The main function.""" | 
|  | 22 | parser = optparse.OptionParser() | 
|  | 23 |  | 
|  | 24 | (options, args) = parser.parse_args(argv) | 
|  | 25 |  | 
|  | 26 | for j in range(10): | 
|  | 27 | for i in range(10000): | 
|  | 28 | print str(j) + "The quick brown fox jumped over the lazy dog." + str(i) | 
|  | 29 | time.sleep(60) | 
|  | 30 |  | 
|  | 31 | return 0 | 
|  | 32 |  | 
|  | 33 |  | 
|  | 34 | if __name__ == "__main__": | 
|  | 35 | Main(sys.argv) |