Home
last modified time | relevance | path

Searched refs:popen (Results 1 – 25 of 259) sorted by relevance

1234567891011

/external/python/cpython3/Lib/test/
Dtest_popen.py24 with os.popen(cmd) as p:
30 self.assertRaises(TypeError, os.popen)
46 self.assertEqual(os.popen("exit 0").close(), None)
48 self.assertEqual(os.popen("exit 42").close(), 42)
50 self.assertEqual(os.popen("exit 42").close(), 42 << 8)
53 with os.popen("echo hello") as f:
57 with os.popen("echo hello") as f:
61 with os.popen(cmd="exit 0", mode="w", buffering=-1):
/external/python/cpython2/Lib/test/
Dtest_popen.py20 data = os.popen(cmd).read() + '\n'
25 self.assertRaises(TypeError, os.popen)
41 self.assertEqual(os.popen("exit 0").close(), None)
43 self.assertEqual(os.popen("exit 42").close(), 42)
45 self.assertEqual(os.popen("exit 42").close(), 42 << 8)
Dtest_unicodedata.py234 popen = subprocess.Popen(args, stderr=subprocess.PIPE)
235 popen.wait()
236 self.assertEqual(popen.returncode, 1)
239 self.assertIn(error, popen.stderr.read())
/external/scapy/scapy/arch/
Dunix.py36 with os.popen('%s -l' % conf.prog.ifconfig) as fdesc:
46 f=os.popen("netstat -rvn") # -f inet
48 f=os.popen("netstat -rnW") # -W to handle long interface names
50 f=os.popen("netstat -rn") # -f inet
154 f = os.popen("%s %s" % (conf.prog.ifconfig, ifname))
194 f = os.popen("%s" % conf.prog.ifconfig)
208 f = os.popen("%s -l" % conf.prog.ifconfig)
226 fd_netstat = os.popen("netstat -rn -f inet6")
/external/v8/src/inspector/build/
Dcompile-scripts.py49 def popen(arguments): function
91 java_version_out, _ = popen([java_path, '-version']).communicate()
102 check_server_proc = popen(exec_command + ['-version'])
130 injected_script_compile_proc = popen(command)
140 debugger_script_compile_proc = popen(command)
145 validate_injected_script_proc = popen([sys.executable,
/external/autotest/client/cros/audio/
Dalsa_utils.py77 p = cmd_utils.popen(cmd, stdout=subprocess.PIPE)
110 p = cmd_utils.popen(cmd, stdout=subprocess.PIPE)
172 p = cmd_utils.popen(cmd, stdout=subprocess.PIPE)
222 p = cmd_utils.popen(cmd, stdout=subprocess.PIPE)
238 p = cmd_utils.popen(cmd, stdout=subprocess.PIPE)
346 p = cmd_utils.popen(cmd, stdout=subprocess.PIPE)
/external/python/cpython2/Lib/
Dplatform.py421 def popen(cmd, mode='r', bufsize=None): function
427 popen = None
436 popen = win32pipe.popen
437 if popen is None:
439 popen = os.popen
444 popen('')
446 popen = _popen
448 popen = _popen
450 return popen(cmd,mode)
452 return popen(cmd,mode,bufsize)
[all …]
/external/scapy/scapy/arch/bpf/
Dcore.py41 fd = os.popen("%s %s" % (conf.prog.ifconfig, ifname))
68 fd = os.popen("%s %s" % (conf.prog.ifconfig, ifname))
107 f = os.popen(command)
130 fd = os.popen("%s -a" % conf.prog.ifconfig)
/external/python/cpython3/Lib/test/libregrtest/
Druntest_mp.py53 popen = Popen(cmd,
58 with popen:
59 stdout, stderr = popen.communicate()
60 retcode = popen.wait()
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/
Dlist_ports_linux.py19 def popen(argv): function
26 def popen(argv): function
84 desc = popen(['lsusb', '-v', '-s', '%s:%s' % (bus, dev)])
/external/python/cpython2/Lib/distutils/
Dcygwinccompiler.py420 out = os.popen(gcc_exe + ' -dumpversion','r')
432 out = os.popen(ld_exe + ' -v','r')
444 out = os.popen(dllwrap_exe + ' --version','r')
458 out = os.popen('gcc -dumpmachine', 'r')
Dmsvc9compiler.py273 popen = subprocess.Popen('"%s" %s & set' % (vcvarsall, arch),
277 stdout, stderr = popen.communicate()
278 if popen.wait() != 0:
295 popen.stdout.close()
296 popen.stderr.close()
/external/python/cpython2/Demo/curses/
Drepeat.py33 p = os.popen(cmd, "r")
49 p = os.popen(cmd, "r")
/external/python/cpython2/PC/os2vacpp/
Dreadme.txt31 -- os.popen() Usage Warnings
33 With respect to my implementation of popen() under OS/2:
37 fd = os.popen("pkzip.exe -@ junk.zip", 'wb')
48 using popen() in read mode.
50 One other slight difference with my popen() is that I return None
/external/autotest/contrib/
Dpoolhistory.py17 return os.popen("/usr/local/autotest/cli/atest host list | "
47 print os.popen('/usr/local/autotest/contrib/onerous_tasks.py host -name %s '
/external/autotest/client/profilers/powertop/src/
Dwireless.c95 file = popen(line, "r"); in check_unused_wiresless_up()
122 file = popen(line, "r"); in need_wireless_suggest()
218 file = popen("/sbin/iwpriv -a 2> /dev/null", "r"); in find_wireless_nic()
/external/tensorflow/tensorflow/core/platform/profile_utils/
Dcpu_utils.cc71 FILE* fp = popen("grep '^bogomips' /proc/cpuinfo | head -1", "r"); in GetCycleCounterFrequencyImpl()
89 popen("sysctl hw | grep hw.cpufrequency_max: | cut -d' ' -f 2", "r"); in GetCycleCounterFrequencyImpl()
/external/python/cpython2/Demo/scripts/
Dlpwatch.py32 clearhome = os.popen('clear', 'r').read()
42 pipe = os.popen('lpq -P' + name + ' 2>&1', 'r')
/external/autotest/client/site_tests/desktopui_AudioFeedback/
Ddesktopui_AudioFeedback.py67 p1 = cmd_utils.popen(cras_utils.capture_cmd(
69 p2 = cmd_utils.popen(cras_utils.loopback_cmd(
/external/autotest/client/site_tests/desktopui_MediaAudioFeedback/
Ddesktopui_MediaAudioFeedback.py53 p1 = cmd_utils.popen(cras_utils.capture_cmd(
55 p2 = cmd_utils.popen(cras_utils.loopback_cmd(
/external/autotest/client/site_tests/audio_CRASFormatConversion/
Daudio_CRASFormatConversion.py33 p1 = cmd_utils.popen(
37 p2 = cmd_utils.popen(
/external/autotest/client/site_tests/audio_SeekAudioFeedback/
Daudio_SeekAudioFeedback.py56 p1 = cmd_utils.popen(cras_utils.capture_cmd(
58 p2 = cmd_utils.popen(cras_utils.loopback_cmd(
/external/linux-kselftest/tools/testing/selftests/vm/
Dcompaction_test.c30 FILE *cmdfile = popen(cmd, "r"); in read_memory_info()
41 cmdfile = popen(cmd, "r"); in read_memory_info()
/external/python/cpython2/Doc/library/
Dplatform.rst220 .. function:: popen(cmd, mode='r', bufsize=None)
222 Portable :func:`popen` interface. Find a working popen implementation
223 preferring :func:`win32pipe.popen`. On Windows NT, :func:`win32pipe.popen`
/external/python/cpython3/Doc/library/
Dplatform.rst218 .. function:: popen(cmd, mode='r', bufsize=-1)
220 Portable :func:`popen` interface. Find a working popen implementation
221 preferring :func:`win32pipe.popen`. On Windows NT, :func:`win32pipe.popen`

1234567891011