1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <html lang="en">
- <head>
- <title>Output From Non-interactive Applications - avram - a virtual machine code interpreter</title>
- <meta http-equiv="Content-Type" content="text/html">
- <meta name="description" content="avram - a virtual machine code interpreter">
- <meta name="generator" content="makeinfo 4.13">
- <link title="Top" rel="start" href="index.html#Top">
- <link rel="up" href="Parameter-Mode-Interface.html#Parameter-Mode-Interface" title="Parameter Mode Interface">
- <link rel="prev" href="Input-for-Mapped-Applications.html#Input-for-Mapped-Applications" title="Input for Mapped Applications">
- <link rel="next" href="Output-From-Interactive-Applications.html#Output-From-Interactive-Applications" title="Output From Interactive Applications">
- <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
- <meta http-equiv="Content-Style-Type" content="text/css">
- <style type="text/css"><!--
- pre.display { font-family:inherit }
- pre.format { font-family:inherit }
- pre.smalldisplay { font-family:inherit; font-size:smaller }
- pre.smallformat { font-family:inherit; font-size:smaller }
- pre.smallexample { font-size:smaller }
- pre.smalllisp { font-size:smaller }
- span.sc { font-variant:small-caps }
- span.roman { font-family:serif; font-weight:normal; }
- span.sansserif { font-family:sans-serif; font-weight:normal; }
- --></style>
- </head>
- <body>
- <div class="node">
- <a name="Output-From-Non-interactive-Applications"></a>
- <a name="Output-From-Non_002dinteractive-Applications"></a>
- <p>
- Next: <a rel="next" accesskey="n" href="Output-From-Interactive-Applications.html#Output-From-Interactive-Applications">Output From Interactive Applications</a>,
- Previous: <a rel="previous" accesskey="p" href="Input-for-Mapped-Applications.html#Input-for-Mapped-Applications">Input for Mapped Applications</a>,
- Up: <a rel="up" accesskey="u" href="Parameter-Mode-Interface.html#Parameter-Mode-Interface">Parameter Mode Interface</a>
- <hr>
- </div>
- <h4 class="subsection">2.6.3 Output From Non-interactive Applications</h4>
- <p><a name="index-g_t_0040code_007binteractive_007d-command-line-option-221"></a><a name="index-g_t_0040code_007bstep_007d-command-line-option-222"></a>If a parameter mode application is not invoked with either of the
- <samp><span class="option">--interactive</span></samp> or <samp><span class="option">--step</span></samp> options,
- then it is deemed to be non-interactive, and therefore does not concern
- itself with executing shell commands. Instead, it simply specifies a
- list of output files to be created or updated on its behalf by <code>avram</code>.
- <p>The files are described by a list of quadruples
- <code>((</code><var>overwrite</var><code>,</code><var>path</var><code>),(</code><var>preamble</var><code>,</code><var>contents</var><code>))</code>,
- with one quadruple for each file.
- <p><a name="index-preamble-223"></a><a name="index-paths-224"></a><a name="index-standard-input-225"></a><a name="index-standard-output-226"></a>In each quadruple, the <var>path</var>, <var>preamble</var>, and <var>contents</var>
- fields have the same interpretations as in the list of files in the
- input data structure described in <a href="Input-Data-Structure.html#Input-Data-Structure">Input Data Structure</a>, except that a
- <code>nil</code> path refers to standard output rather than to standard input.
- <p>The <var>overwrite</var> field in each quadruple tells whether the file
- <a name="index-appending-to-files-227"></a>should be overwritten or appended. If the <var>overwrite</var> field is
- <code>nil</code> (i.e., the representation for the Boolean value of
- <code>false</code>) and a file already exists at the given path, the new
- contents will be appended to it. If the <var>overwrite</var> field is
- anything other than <code>nil</code> and/or no file exists with the given
- path, a new file is written or the extant one is overwritten. Note that
- the data file format specified in <a href="File-Format.html#File-Format">File Format</a> precludes appending
- anything to it, but the format of existing output files is not checked
- and nothing prevents data or text from being appended to one.
- </body></html>
|