Lines Matching refs:cmd
305 cmd = 'echo fred >/dev/stderr && false || echo bad'
306 plist = Popen([cmd], shell=True).communicate_filter(oper.output)
314 cmd = 'echo test >/dev/stderr'
315 self.assertRaises(OSError, Popen, [cmd], shell=False)
316 plist = Popen([cmd], shell=True).communicate_filter(oper.output)
324 cmd = ['echo', 'test', '>/dev/stderr']
325 plist = Popen(cmd, shell=False).communicate_filter(oper.output)
327 self.assertEqual(plist [0], ' '.join(cmd[1:]) + '\r\n')
333 cmd = ['echo', 'test', '>/dev/stderr']
334 plist = Popen(cmd, shell=True).communicate_filter(oper.output)
354 cmd = 'echo $FRED'
355 plist = Popen(cmd, shell=True, env=env).communicate_filter(oper.output)
372 cmd = 'echo -n "%s"; read name; echo Hello $name' % prompt
373 plist = Popen([cmd], stdin=oper.stdin_read_pipe,
382 cmd = ('if [ -t %d ]; then echo "terminal %d" >&%d; '
386 both_cmds += cmd % (fd, fd, fd, fd, fd)