autodoc.git
/
modref
/
ex
/
predef_3A_3A
/
Process
/
popen.html
version
»
Context lines:
10
20
40
80
file
none
3
autodoc.git/modref/ex/predef_3A_3A/Process/popen.html:1:
+
<html>
+
<head>
+
<title>Pike Reference Manual - Process.popen()</title>
+
<link rel='stylesheet' href='../../../style.css' />
+
<style type='text/css'>
+
svg line { stroke:#343434; stroke-width:2; }
+
svg text { fill:#343434; }
+
svg a { fill:#0768b2; text-decoration: underline; }
+
</style>
-
+
</head>
+
<body link="#0768b2" alink="#002040" vlink="#0768b2">
+
<header>
+
<div>
+
<div style="text-align:right;">Extracted from as of .</div>
+
<div style="overflow:hidden;">
+
<a href="http://pike.lysator.liu.se/"
+
style="float:left; width:181px; height:41px; margin:10px;
+
margin-left:22px; margin-right:25px;
+
background-image:url('../../../../images/pike_logo.gif');"></a>
+
<div style="margin:10px; height:11px;
+
margin-top:26px; margin-right:19px;
+
overflow:hidden;
+
background-image:url('../../../../images/pike_line_middle.gif');">
+
<span style="float:left; width:5px; height:11px;
+
background-image:url('../../../../images/pike_line_left.gif');"> </span>
+
<span style="float:right; width:5px; height:11px;
+
background-image:url('../../../../images/pike_line_right.gif');"> </span>
+
</div>
+
</div>
+
</div>
+
</header>
+
+
<div>
+
<div class="navbar">
+
<nav>
+
<a href='../../../index.html'><b class='top head'>Top</b></a>
+
<a href='../../../ex/predef_3A_3A/Process.html'><b class='head'>Process</b></a>
+
<script></script>
+
<noscript>
+
<div class='sidebar'>
+
<a href='../../../ex/predef_3A_3A/Process/index.html'><b>Symbol index</b></a><br />
+
</div>
+
</noscript>
+
+
</nav>
+
</div>
+
<div class="navbox">
+
<nav>
+
<div class="sidebar">
+
<a href="../../../ex/predef_3A_3A/Process/get_forkd_default.html" class="left"
+
><img src="../../../../images/prev.gif" hspace="3"
+
border="0" alt="previous"
+
>Process.get_forkd_default()</a>
+
<a href="../../../ex/predef_3A_3A/Process/run.html" class="right"
+
>Process.run()<img src="../../../../images/next.gif" hspace="3"
+
border="0" alt="next"
+
></a>
+
</div>
+
</nav>
+
</div>
+
<div class="contentbox">
+
<article>
+
<h1>Method Process.popen()</h1>
+
+
+
<hr />
+
<dl class='group--doc'>
+
<dt class='head--type'><span class='homogen--type'>Method</span>
+
<span class='homogen--name'><b>popen</b></span>
+
</dt>
+
<dd><p><code><code class='datatype'>string</code> <b><span class='method'>popen</span>(</b><code class='datatype'>string</code> <code class='argument'>command</code><b>)</b></code></p></dd>
+
+
<dt class='head--doc'>Description</dt>
+
<dd class='body--doc'><p>Executes <a class='ms reference' href='../../predef_3A_3A/Process/popen.html'>command</a> as a shell statement ("<code class='expr'>/bin/sh -c
+
<a class='ms reference' href='../../predef_3A_3A/Process/popen.html'>command</a></code>" for Unix, "<code class='expr'>cmd /c <a class='ms reference' href='../../predef_3A_3A/Process/popen.html'>command</a></code>" for Windows),
+
waits until it has finished and returns the result as a string.</p>
+
</dd>
+
<dt class='head--doc'>See also</dt>
+
<dd class='body--doc'><p><a class='ms reference' href='../../predef_3A_3A/Process/system.html'>system</a>, <a class='ms reference' href='../../predef_3A_3A/Process/spawn.html'>spawn</a></p>
+
</dd></dl>
+
+
+
<hr />
+
<dl class='group--doc'>
+
<dt class='head--type'><span class='homogen--type'>Method</span>
+
<span class='homogen--name'><b>popen</b></span>
+
</dt>
+
<dd><p><code><code class='object resolved'><a class='ms reference' href='../../predef_3A_3A/Stdio/FILE.html'>Stdio.FILE</a></code> <b><span class='method'>popen</span>(</b><code class='datatype'>string</code> <code class='argument'>command</code>, <code class='datatype'>string</code> <code class='argument'>mode</code><b>)</b></code></p></dd>
+
+
<dt class='head--doc'>Description</dt>
+
<dd class='body--doc'><p>Open a "process" for reading or writing. The <a class='ms reference' href='../../predef_3A_3A/Process/popen.html'>command</a> is executed
+
as a shell statement ("<code class='expr'>/bin/sh -c <a class='ms reference' href='../../predef_3A_3A/Process/popen.html'>command</a></code>" for Unix,
+
"<code class='expr'>cmd /c <a class='ms reference' href='../../predef_3A_3A/Process/popen.html'>command</a></code>" for Windows). The parameter <a class='ms reference' href='../../predef_3A_3A/Process/popen.html'>mode</a>
+
should be one of the following letters:</p>
+
<table class='box'><tr><td><code><code class='key'>"r"</code></code></td><td><p>Open for reading. Data written by the process to stdout
+
is available for read.</p>
+
</td></tr>
+
<tr><td><code><code class='key'>"w"</code></code></td><td><p>Open for writing. Data written to the file is available
+
to the process on stdin.</p>
+
</td></tr>
+
</table>
+
</dd>
+
<dt class='head--doc'>See also</dt>
+
<dd class='body--doc'><p><a class='ms reference' href='../../predef_3A_3A/Process/system.html'>system</a>, <a class='ms reference' href='../../predef_3A_3A/Process/spawn.html'>spawn</a></p>
+
</dd></dl>
+
+
</article>
+
<footer>
+
<hr size="1" noshade="1" />
+
</footer>
+
</div>
+
</div>
+
</body>
+
<script>PikeDoc.current = {"link":"ex/predef_3A_3A/Process/popen.html","name":"popen"};</script>
+
<script src='../../../ex/predef_3A_3A/Process/index.js'></script>
+
<script src='../../../ex/predef_3A_3A/Process/load_index.js'></script>
+
</html>
Newline at end of file added.