Output-From-Non_002dinteractive-Applications.html 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <html lang="en">
  2. <head>
  3. <title>Output From Non-interactive Applications - avram - a virtual machine code interpreter</title>
  4. <meta http-equiv="Content-Type" content="text/html">
  5. <meta name="description" content="avram - a virtual machine code interpreter">
  6. <meta name="generator" content="makeinfo 4.13">
  7. <link title="Top" rel="start" href="index.html#Top">
  8. <link rel="up" href="Parameter-Mode-Interface.html#Parameter-Mode-Interface" title="Parameter Mode Interface">
  9. <link rel="prev" href="Input-for-Mapped-Applications.html#Input-for-Mapped-Applications" title="Input for Mapped Applications">
  10. <link rel="next" href="Output-From-Interactive-Applications.html#Output-From-Interactive-Applications" title="Output From Interactive Applications">
  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="Output-From-Non-interactive-Applications"></a>
  28. <a name="Output-From-Non_002dinteractive-Applications"></a>
  29. <p>
  30. Next:&nbsp;<a rel="next" accesskey="n" href="Output-From-Interactive-Applications.html#Output-From-Interactive-Applications">Output From Interactive Applications</a>,
  31. Previous:&nbsp;<a rel="previous" accesskey="p" href="Input-for-Mapped-Applications.html#Input-for-Mapped-Applications">Input for Mapped Applications</a>,
  32. Up:&nbsp;<a rel="up" accesskey="u" href="Parameter-Mode-Interface.html#Parameter-Mode-Interface">Parameter Mode Interface</a>
  33. <hr>
  34. </div>
  35. <h4 class="subsection">2.6.3 Output From Non-interactive Applications</h4>
  36. <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
  37. <samp><span class="option">--interactive</span></samp> or <samp><span class="option">--step</span></samp> options,
  38. then it is deemed to be non-interactive, and therefore does not concern
  39. itself with executing shell commands. Instead, it simply specifies a
  40. list of output files to be created or updated on its behalf by <code>avram</code>.
  41. <p>The files are described by a list of quadruples
  42. <code>((</code><var>overwrite</var><code>,</code><var>path</var><code>),(</code><var>preamble</var><code>,</code><var>contents</var><code>))</code>,
  43. with one quadruple for each file.
  44. <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>
  45. fields have the same interpretations as in the list of files in the
  46. input data structure described in <a href="Input-Data-Structure.html#Input-Data-Structure">Input Data Structure</a>, except that a
  47. <code>nil</code> path refers to standard output rather than to standard input.
  48. <p>The <var>overwrite</var> field in each quadruple tells whether the file
  49. <a name="index-appending-to-files-227"></a>should be overwritten or appended. If the <var>overwrite</var> field is
  50. <code>nil</code> (i.e., the representation for the Boolean value of
  51. <code>false</code>) and a file already exists at the given path, the new
  52. contents will be appended to it. If the <var>overwrite</var> field is
  53. anything other than <code>nil</code> and/or no file exists with the given
  54. path, a new file is written or the extant one is overwritten. Note that
  55. the data file format specified in <a href="File-Format.html#File-Format">File Format</a> precludes appending
  56. anything to it, but the format of existing output files is not checked
  57. and nothing prevents data or text from being appended to one.
  58. </body></html>