This file is indexed.

/usr/share/doc/pyxplot/html/sect0041.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!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: Shell Commands</title>

<link href="sect0042.html" title="Script Watching: pyxplotwatch" rel="next" />
<link href="sect0040.html" title="Assertions" 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="sect0040.html" title="Assertions"><img alt="Previous: Assertions" 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="sect0042.html" title="Script Watching: pyxplot_watch"><img alt="Next: Script Watching: pyxplot_watch" 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">Shell Commands</b>
</span>
</span>
<hr />
</div>

<div><h1 id="a0000000042">6.13 Shell Commands</h1>
<p>Shell commands<a name="a0000000606" id="a0000000606"></a> may be executed directly from within PyXPlot by prefixing them with an <tt class="tt">!</tt><a name="a0000000607" id="a0000000607"></a> character. The remainder of the line is sent directly to the shell, for example: </p><pre>
!ls -l
</pre><p>Semi-colons cannot be used to place further PyXPlot commands after a shell command on the same line. </p><p><table cellspacing="0" class="tabular">
<tr>

    
    <td style="text-align:left"><p><img src="images/img-0029.png" alt="\includegraphics{cross}" style="width:20px; height:24px" />
</p></td>

    
    <td style="text-align:left"><p><div style="width:0.0pt" class="minipage"><tt class="tt"> !ls -l ; set key top left </tt></div></p></td>

</tr>
</table> </p><p>It is also possible to substitute the output of a shell command into a PyXPlot command. To do this, the shell command should be enclosed in back-quotes (‘), as in the following example:<a name="a0000000608" id="a0000000608"></a><a name="a0000000609" id="a0000000609"></a> </p><pre>
a=`ls -l *.ppl | wc -l`
print "The current directory contains %d PyXPlot scripts."%(a)
</pre><p>It should be noted that back-quotes can only be used outside quotes. For example, </p><p><table cellspacing="0" class="tabular">
<tr>

    
    <td style="text-align:left"><p><img src="images/img-0029.png" alt="\includegraphics{cross}" style="width:20px; height:24px" />
</p></td>

    
    <td style="text-align:left"><p><div style="width:0.0pt" class="minipage"><tt class="tt"> set xlabel ’‘ls‘’ </tt></div></p></td>

</tr>
</table> </p><p>will not work. The best way to do this would be: </p><p><table cellspacing="0" class="tabular">
<tr>

    
    <td style="text-align:left"><p><img src="images/img-0030.png" alt="\includegraphics{tick}" style="width:19px; height:17px" />
</p></td>

    
    <td style="text-align:left"><p><div style="width:0.0pt" class="minipage"><tt class="tt"> set xlabel ‘echo "’" ; ls ; echo "’"‘ </tt></div></p></td>

</tr>
</table> </p><p>Note that it is not possible to change the current working directory by sending the <tt class="tt">cd</tt> command to a shell, as this command would only change the working directory of the shell in which the single command is executed: </p><p><table cellspacing="0" class="tabular">
<tr>

    
    <td style="text-align:left"><p><img src="images/img-0029.png" alt="\includegraphics{cross}" style="width:20px; height:24px" />
</p></td>

    
    <td style="text-align:left"><p><div style="width:0.0pt" class="minipage"><tt class="tt"> !cd .. </tt></div></p></td>

</tr>
</table> </p><p>PyXPlot has its own <tt class="tt">cd</tt> command<a name="a0000000610" id="a0000000610"></a> for this purpose, as well as its own <tt class="tt">pwd</tt> command<a name="a0000000611" id="a0000000611"></a>: </p><p><table cellspacing="0" class="tabular">
<tr>

    
    <td style="text-align:left"><p><img src="images/img-0030.png" alt="\includegraphics{tick}" style="width:19px; height:17px" />
</p></td>

    
    <td style="text-align:left"><p><div style="width:0.0pt" class="minipage"><tt class="tt"> cd .. </tt></div></p></td>

</tr>
</table> </p></div>





<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0040.html" title="Assertions"><img alt="Previous: Assertions" 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="sect0042.html" title="Script Watching: pyxplot_watch"><img alt="Next: Script Watching: pyxplot_watch" 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>