Lines Matching refs:cmd
68 (options, cmd) = optparser.parse_args()
70 if cmd == []:
74 # If we want to do this, need to add check here to make sure cmd[0] is
78 # options.job_name = cmd[0]
98 def __init__(self, cmd):
101 pexpect.spawn.__init__(self, cmd)
125 def do_bare_command(self, cmd, timeout = -1):
127 self.sendline(cmd)
137 def do_command(self, cmd, timeout = -1):
139 output = self.do_bare_command(cmd, timeout)
165 if False and len(cmd) > 50:
167 print "%s: running %s on poolfs" % (progname, cmd[0])
191 if 'cc' in cmd[0] or 'g++' in cmd[0]:
192 output_dir = os.path.dirname(cmd[cmd.index('-o')+1])
193 elif 'm5' in cmd[0]:
194 output_dir = cmd[cmd.index('-d')+1]
211 cmd += ['>', options.stdout_file]
213 cmd += ['2>', options.stderr_file]
215 (output, status) = shell.do_command(' '.join(cmd), options.cmd_timeout)