<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ChildProcess</code>( )</td><td class="tdright">( function )</td></tr></table></div>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ChildProcess</code>( <var class="Arg">arg</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This starts a GAP session as a child process and returns a stream to the child process. If no argument is given then the child process is created on the local machine; otherwise the argument should be:<br /> 1) <span class="SimpleMath">\(arg\)</span>="computer.ac.wales" the address of a remote computer for which ssh has been configured to require no password from the user;<br /> (2) <span class="SimpleMath">\(arg\)</span>=["-m", "100000M", "-T"] a list of GAP command line options;<br/> (3) <span class="SimpleMath">\(arg\)</span>="computer.ac.wales", ["-m", "100000M", "-T"] the address of a computer followed by a list of command line options.</p>
<p>(To configure ssh so that the user can login without a password prompt from "thishost" to "remotehost" either consult "man ssh" or <br /> <br /> - open a shell on thishost<br /> - cd .ssh<br /> - ls<br /> -> if id_dsa, id_rsa etc exists, skip the next two steps!<br /> - ssh-keygen -t rsa<br /> - ssh-keygen -t dsa<br /> - scp *.pub userremotehost:~/<br /> - ssh remotehost -l user<br /> - cat id_rsa.pub >> .ssh/authorized_keys<br /> - cat id_dsa.pub >> .ssh/authorized_keys<br /> - rm id_rsa.pub id_dsa.pub<br /> - exit<br /> <br /> You should now be able to connect from "thishost" to "remotehost" without a password prompt.)</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ChildClose</code>( <var class="Arg">s</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This closes the stream s to a child GAP process.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ChildCommand</code>( <var class="Arg">str</var>, <var class="Arg">s</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This runs a GAP command <span class="SimpleMath">\(str\)</span>="cmd;" on the child process accessed by the stream s. Here "cmd;" is a string representing the command.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ NextAvailableChild</code>( <var class="Arg">L</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Inputs a list <span class="SimpleMath">\(L\)</span> of child processes and returns a child in <span class="SimpleMath">\(L\)</span> which is ready for computation (as soon as such a child is available).</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsAvailableChild</code>( <var class="Arg">s</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Inputs a child process <span class="SimpleMath">\(s\)</span> and returns true if s is currently available for computations, and false otherwise.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ChildPut</code>( <var class="Arg">A</var>, <var class="Arg">str</var>, <var class="Arg">s</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This copies a GAP object A on the parent process to an object B=<span class="SimpleMath">\(str\)</span> on the child process s. (The copying relies on the function PrintObj(A); )</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ChildGet</code>( <var class="Arg">str</var>, <var class="Arg">s</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This functions copies a GAP object A="str" on the child process s and returns it on the parent process. (The copying relies on the function PrintObj(A); )</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ HAPPrintTo</code>( <var class="Arg">str</var>, <var class="Arg">R</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Inputs a string <span class="SimpleMath">\(str\)</span>="file" giving the address of a new text file and a HAP object R. It writes the object R to "file". Currently this is only implemented for R equal to a resolution.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ HAPRead</code>( <var class="Arg">str</var>, <var class="Arg">R</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Inputs an address <span class="SimpleMath">\(str\)</span>="file" of a file containing a HAP object R and returns the object. Currently this is only implemented for R equal to a resolution.</p>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.