Lines Matching refs:cmd
302 cmd = 'echo fred >/dev/stderr && false || echo bad'
303 plist = Popen([cmd], shell=True).CommunicateFilter(oper.Output)
311 cmd = 'echo test >/dev/stderr'
312 self.assertRaises(OSError, Popen, [cmd], shell=False)
313 plist = Popen([cmd], shell=True).CommunicateFilter(oper.Output)
321 cmd = ['echo', 'test', '>/dev/stderr']
322 plist = Popen(cmd, shell=False).CommunicateFilter(oper.Output)
324 self.assertEqual(plist [0], ' '.join(cmd[1:]) + '\r\n')
330 cmd = ['echo', 'test', '>/dev/stderr']
331 plist = Popen(cmd, shell=True).CommunicateFilter(oper.Output)
350 cmd = 'echo $FRED'
351 plist = Popen(cmd, shell=True, env=env).CommunicateFilter(oper.Output)
368 cmd = 'echo -n "%s"; read name; echo Hello $name' % prompt
369 plist = Popen([cmd], stdin=oper.stdin_read_pipe,
378 cmd = ('if [ -t %d ]; then echo "terminal %d" >&%d; '
382 both_cmds += cmd % (fd, fd, fd, fd, fd)