autodoc.git / modref / ex / predef_3A_3A / Process / popen.html

version» Context lines:

autodoc.git/modref/ex/predef_3A_3A/Process/popen.html:47:   <a href='../../../ex/predef_3A_3A/Process/index.html'><b>Symbol index</b></a><br />   </div>   </noscript>   </td>    <td width='520' valign='top'>       <table border="0" width="520" bgcolor="#e0e0e0"    cellpadding="0" cellspacing="4" class='sidebar'>    <tr>    <td valign="middle"> -  <a href="../../../ex/predef_3A_3A/Process/fpopen.html"><img src="../../../../images/prev.gif" hspace="3" -  border="0" alt="previous" >Process.fpopen()</a> +  <a href="../../../ex/predef_3A_3A/Process/exec.html"><img src="../../../../images/prev.gif" hspace="3" +  border="0" alt="previous" >Process.exec()</a>    <br />    </td>    <td align="right" valign="middle">    <a href="../../../ex/predef_3A_3A/Process/search_path.html">Process.search_path()<img src="../../../../images/next.gif" hspace="3"    border="0" alt="next" ></a>    <br />    </td>    </tr>    </table>       <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'>s</code><b>)</b></code></p></dd> + <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>Works as <a class='ms reference' href='../../predef_3A_3A/Process/fpopen.html'>fpopen</a>, but blocks until the command completes and -  returns the resulting string.</p> + <dd class='body--doc'><p>Executes the <a class='ms reference' href='../../predef_3A_3A/Process/popen.html'>command</a>, waits until it has finished and returns +  the result as a string.</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 ("/bin/sh -c command" for Unix, +  "cmd /c command" 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></dl> +  +     <hr size='1' noshade='1' />    </td>    </tr>   </table>   </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>