qdo (1964:fca3bb8babaf) qdo (2441:6d9097edd4aa)
1#! /usr/bin/env python
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 165 unchanged lines hidden (view full) ---

174 else:
175 output_dir = None
176 except (ValueError, IndexError):
177 # no big deal if there's no '-o'/'-d' or if it's the final argument
178 output_dir = None
179
180 if output_dir:
181 secs_waited = 0
1#! /usr/bin/env python
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 165 unchanged lines hidden (view full) ---

174 else:
175 output_dir = None
176 except (ValueError, IndexError):
177 # no big deal if there's no '-o'/'-d' or if it's the final argument
178 output_dir = None
179
180 if output_dir:
181 secs_waited = 0
182 while not shell.dir_exists(output_dir) and secs_waited < 45:
182 while not shell.dir_exists(output_dir) and secs_waited < 90:
183 time.sleep(5)
184 secs_waited += 5
183 time.sleep(5)
184 secs_waited += 5
185 if secs_waited > 10:
185 if secs_waited > 30:
186 print "waited", secs_waited, "seconds for", output_dir
187
188 # run command
189 if options.stdout_file:
190 cmd += ['>', options.stdout_file]
191 if options.stderr_file:
192 cmd += ['2>', options.stderr_file]
193 try:

--- 26 unchanged lines hidden ---
186 print "waited", secs_waited, "seconds for", output_dir
187
188 # run command
189 if options.stdout_file:
190 cmd += ['>', options.stdout_file]
191 if options.stderr_file:
192 cmd += ['2>', options.stderr_file]
193 try:

--- 26 unchanged lines hidden ---