/usr/share/doc/pyxplot/html/sect0042.html is in pyxplot-doc 0.8.4-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="generator" content="plasTeX" />
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title>PyXPlot Users' Guide: Script Watching: pyxplot_watch</title>
<link href="sect0043.html" title="Plotting and Vector Graphics" rel="next" />
<link href="sect0041.html" title="Shell Commands" rel="prev" />
<link href="sect0031.html" title="Programming and Flow Control" rel="up" />
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0041.html" title="Shell Commands"><img alt="Previous: Shell Commands" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="sect0031.html" title="Programming and Flow Control"><img alt="Up: Programming and Flow Control" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sect0043.html" title="Plotting and Vector Graphics"><img alt="Next: Plotting and Vector Graphics" border="0" src="icons/next.gif" width="32" height="32" /></a></td>
<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>
<td><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>
<div class="breadcrumbs">
<span>
<span>
<a href="index.html">PyXPlot Users' Guide</a> <b>:</b>
</span>
</span><span>
<span>
<a href="sect0001.html">Introduction to PyXPlot</a> <b>:</b>
</span>
</span><span>
<span>
<a href="sect0031.html">Programming and Flow Control</a> <b>:</b>
</span>
</span><span>
<span>
<b class="current">Script Watching: pyxplot_watch</b>
</span>
</span>
<hr />
</div>
<div><h1 id="a0000000043">6.14 Script Watching: pyxplot_watch</h1>
<p>PyXPlot includes a simple tool for watching command script files and executing them whenever they are modified. This may be useful when developing a command script, if one wants to make small modifications to it and see the results in a semi-live fashion. This tool is invoked by calling the <tt class="tt">pyxplot_watch</tt><a name="a0000000612" id="a0000000612"></a><a name="a0000000613" id="a0000000613"></a> command from a shell prompt. The command-line syntax of <tt class="tt">pyxplot_watch</tt> is similar to that of PyXPlot itself, for example: </p><pre>
pyxplot_watch script.ppl
</pre><p>would set <tt class="tt">pyxplot_watch</tt> to watch the command script file <tt class="tt">script.ppl</tt>. One difference, however, is that if multiple script files are specified on the command line, they are watched and executed independently, <i class="itshape">not</i> sequentially, as PyXPlot itself would do. Wildcard characters can also be used to set <tt class="tt">pyxplot_watch</tt> to watch multiple files.<a href="#a0000000614" class="footnote"><sup class="footnotemark">1</sup></a> </p><p>This is especially useful when combined with Ghostview’s<a name="a0000000615" id="a0000000615"></a> watch facility. For example, suppose that a script <tt class="tt">foo.ppl</tt> produces PostScript output <tt class="tt">foo.ps</tt>. The following two commands could be used to give a live view of the result of executing this script: </p><pre>
gv --watch foo.ps &
pyxplot_watch foo.ppl
</pre></div>
<div id="footnotes">
<p><b>Footnotes</b></p>
<ol>
<li id="a0000000614">Note that <tt class="tt">pyxplot_watch *.script</tt> and <tt class="tt">pyxplot_watch <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />*.script</tt> will behave differently in most UNIX shells. In the first case, the wildcard is expanded by your shell, and a list of files passed to <tt class="tt">pyxplot_watch</tt>. Any files matching the wildcard, created after running <tt class="tt">pyxplot_watch</tt>, will not be picked up. In the latter case, the wildcard is expanded by <tt class="tt">pyxplot_watch</tt> itself, which <i class="it">will</i> pick up any newly created files.</li>
</ol>
</div>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0041.html" title="Shell Commands"><img alt="Previous: Shell Commands" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="sect0031.html" title="Programming and Flow Control"><img alt="Up: Programming and Flow Control" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sect0043.html" title="Plotting and Vector Graphics"><img alt="Next: Plotting and Vector Graphics" border="0" src="icons/next.gif" width="32" height="32" /></a></td>
<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>
<td><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>
<script language="javascript" src="icons/imgadjust.js" type="text/javascript"></script>
</body>
</html>
|