Debian Codegraph @

doc/geomview.html/emodule_002drun.html

raw
1 <html lang="en">
2 <head>
3 <title>emodule-run - Geomview Manual</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="Geomview Manual">
6 <meta name="generator" content="makeinfo 4.13">
7 <link title="Top" rel="start" href="index.html#Top">
8 <link rel="up" href="GCL-Reference.html#GCL-Reference" title="GCL Reference">
9 <link rel="prev" href="emodule_002dpath.html#emodule_002dpath" title="emodule-path">
10 <link rel="next" href="emodule_002dsort.html#emodule_002dsort" title="emodule-sort">
11 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12 <meta http-equiv="Content-Style-Type" content="text/css">
13 <style type="text/css"><!--
14 pre.display { font-family:inherit }
15 pre.format { font-family:inherit }
16 pre.smalldisplay { font-family:inherit; font-size:smaller }
17 pre.smallformat { font-family:inherit; font-size:smaller }
18 pre.smallexample { font-size:smaller }
19 pre.smalllisp { font-size:smaller }
20 span.sc { font-variant:small-caps }
21 span.roman { font-family:serif; font-weight:normal; }
22 span.sansserif { font-family:sans-serif; font-weight:normal; }
23 --></style>
24 </head>
25 <body>
26 <div class="node">
27 <a name="emodule-run"></a>
28 <a name="emodule_002drun"></a>
29 <p>
30 Next:&nbsp;<a rel="next" accesskey="n" href="emodule_002dsort.html#emodule_002dsort">emodule-sort</a>,
31 Previous:&nbsp;<a rel="previous" accesskey="p" href="emodule_002dpath.html#emodule_002dpath">emodule-path</a>,
32 Up:&nbsp;<a rel="up" accesskey="u" href="GCL-Reference.html#GCL-Reference">GCL Reference</a>
33 <hr>
34 </div>
35
36 <h4 class="subsection">7.2.44 emodule-run</h4>
37
38 <p><a name="index-emodule_002drun_002c-_007c-50"></a><a name="index-g_t_007c_002c-emodule_002drun-51"></a>
39 <dl>
40 <dt><code>(emodule-run SHELL-COMMAND ARGS...)</code><dd>Runs the given SHELL-COMMAND (a string containing a UNIX shell
41 command) as an external module. The module's standard output
42 is taken as geomview commands; responses (written to filename
43 <code>-</code>) are sent to the module's standard input. The shell
44 command is interpreted by /bin/sh, so e.g. I/O redirection may
45 be used; a program which prompts the user for input from the
46 terminal could be run with:
47 <pre class="example"> (emodule-run yourprogram &lt;&amp;2)
48 </pre>
49 <p>If not already set, the environment variable $MACHTYPE is set to the
50 name of the machine type. Input and output connections to geomview are
51 dropped when the shell command terminates. Clicking on a running
52 program's module-browser entry sends the signal SIGHUP to the program.
53 For this to work, programs should avoid running in the background; those
54 using FORMS or GL should call foreground() before the first FORMS or
55 winopen() call. See <a href="emodule_002ddefine.html#emodule_002ddefine"><code>(emodule-define ...)</code></a>. See <a href="emodule_002dstart.html#emodule_002dstart"><code>(emodule-start ...)</code></a>.
56 </dl>
57
58 </body></html>
59