qdo (1884:e543e25a5d27) qdo (1891:6d62abcc7456)
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

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

87 # wait for a prompt, then change it
88 try:
89 self.expect('\$ ', options.qsub_timeout)
90 except pexpect.TIMEOUT:
91 print >>sys.stderr, "%s: qsub timed out." % progname
92 self.kill(15)
93 self.close(wait=True)
94 sys.exit(1)
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

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

87 # wait for a prompt, then change it
88 try:
89 self.expect('\$ ', options.qsub_timeout)
90 except pexpect.TIMEOUT:
91 print >>sys.stderr, "%s: qsub timed out." % progname
92 self.kill(15)
93 self.close(wait=True)
94 sys.exit(1)
95 self.do_command('PS1="qdo$ "')
95 self.do_command('unset PROMPT_COMMAND; PS1="qdo$ "')
96
97 # version of expect that updates full_output too
98 def expect(self, regexp, timeout = -1):
99 pexpect.spawn.expect(self, regexp, timeout)
100 self.full_output += self.before + self.after
101
102 # Just issue a command and wait for the next prompt.
103 # Returns a string containing the output of the command.

--- 102 unchanged lines hidden ---
96
97 # version of expect that updates full_output too
98 def expect(self, regexp, timeout = -1):
99 pexpect.spawn.expect(self, regexp, timeout)
100 self.full_output += self.before + self.after
101
102 # Just issue a command and wait for the next prompt.
103 # Returns a string containing the output of the command.

--- 102 unchanged lines hidden ---