Mike Frysinger | c7f1593 | 2013-03-20 13:43:35 -0400 | [diff] [blame] | 1 | #!/usr/bin/python |
asharif | 758f12c | 2013-02-15 09:11:18 +0000 | [diff] [blame] | 2 | # |
| 3 | # Copyright 2010 Google Inc. All Rights Reserved. |
| 4 | |
asharif | 758f12c | 2013-02-15 09:11:18 +0000 | [diff] [blame] | 5 | __author__ = "asharif@google.com (Ahmad Sharif)" |
| 6 | |
| 7 | import optparse |
| 8 | import os |
| 9 | import re |
| 10 | import sys |
kbaclawski | 20082a0 | 2013-02-16 02:12:57 +0000 | [diff] [blame] | 11 | |
asharif | 758f12c | 2013-02-15 09:11:18 +0000 | [diff] [blame] | 12 | from utils import command_executer |
asharif | 758f12c | 2013-02-15 09:11:18 +0000 | [diff] [blame] | 13 | |
| 14 | |
| 15 | def Usage(parser, message): |
| 16 | print "ERROR: " + message |
| 17 | parser.print_help() |
| 18 | sys.exit(0) |
| 19 | |
| 20 | def Main(argv): |
| 21 | parser = optparse.OptionParser() |
| 22 | options = parser.parse_args(argv)[0] |
| 23 | |
| 24 | command = "sleep 1000" |
| 25 | ce = command_executer.GetCommandExecuter() |
| 26 | ce.RunCommand(command, command_timeout=1) |
| 27 | return 0 |
| 28 | |
| 29 | |
| 30 | if __name__ == "__main__": |
| 31 | Main(sys.argv) |