/usr/share/doc/pyxplot/html/sect0249.html is in pyxplot-doc 0.9.2-4.
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 | <!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: The os module</title>
<link href="sect0250.html" title="The os.path module" rel="next" />
<link href="sect0248.html" title="The fractals module" rel="prev" />
<link href="ch-function_list.html" title="List of in-built functions" 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="sect0248.html" title="The fractals module"><img alt="Previous: The fractals module" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="ch-function_list.html" title="List of in-built functions"><img alt="Up: List of in-built functions" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sect0250.html" title="The os.path module"><img alt="Next: The os.path module" 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="sect0288.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="sect0089.html">Reference Manual</a> <b>:</b>
</span>
</span><span>
<span>
<a href="ch-function_list.html">List of in-built functions</a> <b>:</b>
</span>
</span><span>
<span>
<b class="current">The <tt class="ttfamily">os</tt> module</b>
</span>
</span>
<hr />
</div>
<div><h2 id="a0000000250">2.5 The <tt class="ttfamily">os</tt> module</h2>
<p> <big class="large"><b class="bf">os.chdir(<img src="images/img-0030.png" alt="$x$" style="vertical-align:0px;
width:10px;
height:8px" class="math gen" />)</b></big> <br />The os.chdir(<img src="images/img-0030.png" alt="$x$" style="vertical-align:0px;
width:10px;
height:8px" class="math gen" />) function changes working directory to <img src="images/img-0030.png" alt="$x$" style="vertical-align:0px;
width:10px;
height:8px" class="math gen" />, which should be a string. <a name="a0000001563" id="a0000001563"></a> </p><p> <big class="large"><b class="bf">os.getcwd()</b></big> <br />The os.getcwd() function returns the path of the current working directory. <a name="a0000001564" id="a0000001564"></a> </p><p> <big class="large"><b class="bf">os.getegid()</b></big> <br />The os.getegid() function returns the effective group id of the Pyxplot process. <a name="a0000001565" id="a0000001565"></a> </p><p> <big class="large"><b class="bf">os.geteuid()</b></big> <br />The os.geteuid() function returns the effective user id of the Pyxplot process. <a name="a0000001566" id="a0000001566"></a> </p><p> <big class="large"><b class="bf">os.getgid()</b></big> <br />The os.getgid() function returns the group id of the Pyxplot process. <a name="a0000001567" id="a0000001567"></a> </p><p> <big class="large"><b class="bf">os.gethomedir()</b></big> <br />The os.gethomedir() function returns the path of the user’s home directory. <a name="a0000001568" id="a0000001568"></a> </p><p> <big class="large"><b class="bf">os.gethostname()</b></big> <br />The os.gethostname() function returns the system’s host name. <a name="a0000001569" id="a0000001569"></a> </p><p> <big class="large"><b class="bf">os.getlogin()</b></big> <br />The os.getlogin() function returns the system login of the user. <a name="a0000001570" id="a0000001570"></a> </p><p> <big class="large"><b class="bf">os.getpgrp()</b></big> <br />The os.getpgrp() function returns the process group id of the Pyxplot process. <a name="a0000001571" id="a0000001571"></a> </p><p> <big class="large"><b class="bf">os.getpid()</b></big> <br />The os.getpid() function returns the process id of the Pyxplot process. <a name="a0000001572" id="a0000001572"></a> </p><p> <big class="large"><b class="bf">os.getppid()</b></big> <br />The os.getppid() function returns the parent process id of the Pyxplot process. <a name="a0000001573" id="a0000001573"></a> </p><p> <big class="large"><b class="bf">os.getrealname()</b></big> <br />The os.getrealname() function returns the user’s real name. <a name="a0000001574" id="a0000001574"></a> </p><p> <big class="large"><b class="bf">os.getuid()</b></big> <br />The os.getuid() function returns the user id of the Pyxplot process. <a name="a0000001575" id="a0000001575"></a> </p><p> <big class="large"><b class="bf">os.glob(<img src="images/img-0030.png" alt="$x$" style="vertical-align:0px;
width:10px;
height:8px" class="math gen" />)</b></big> <br />The os.glob(<img src="images/img-0030.png" alt="$x$" style="vertical-align:0px;
width:10px;
height:8px" class="math gen" />) function returns a list of files which match the supplied wildcard <img src="images/img-0030.png" alt="$x$" style="vertical-align:0px;
width:10px;
height:8px" class="math gen" />, which should be a string. <a name="a0000001576" id="a0000001576"></a> </p><p> <big class="large"><b class="bf">os.popen(<img src="images/img-0030.png" alt="$x$" style="vertical-align:0px;
width:10px;
height:8px" class="math gen" />,[<img src="images/img-0031.png" alt="$y$" style="vertical-align:-4px;
width:9px;
height:12px" class="math gen" />])</b></big> <br />The os.popen(<img src="images/img-0030.png" alt="$x$" style="vertical-align:0px;
width:10px;
height:8px" class="math gen" />,[<img src="images/img-0031.png" alt="$y$" style="vertical-align:-4px;
width:9px;
height:12px" class="math gen" />]) function opens a pipe to the command <img src="images/img-0030.png" alt="$x$" style="vertical-align:0px;
width:10px;
height:8px" class="math gen" /> with string access mode <img src="images/img-0031.png" alt="$y$" style="vertical-align:-4px;
width:9px;
height:12px" class="math gen" />, and returns a file handle object. <a name="a0000001577" id="a0000001577"></a> </p><p> <big class="large"><b class="bf">os.stat(<img src="images/img-0030.png" alt="$x$" style="vertical-align:0px;
width:10px;
height:8px" class="math gen" />)</b></big> <br />The os.stat(<img src="images/img-0030.png" alt="$x$" style="vertical-align:0px;
width:10px;
height:8px" class="math gen" />) function returns a dictionary of information about the file x, which should be a string filename. <a name="a0000001578" id="a0000001578"></a> </p><p> <big class="large"><b class="bf">os.stderr</b></big> <br />The os.stderr function is a file handle for the Pyxplot process’s <tt class="ttfamily">stderr</tt> stream. <a name="a0000001579" id="a0000001579"></a> </p><p> <big class="large"><b class="bf">os.stdin</b></big> <br />The os.stdin function is a file handle for the Pyxplot process’s <tt class="ttfamily">stdin</tt> stream. <a name="a0000001580" id="a0000001580"></a> </p><p> <big class="large"><b class="bf">os.stdout</b></big> <br />The os.stdout function is a file handle for the Pyxplot process’s <tt class="ttfamily">stdout</tt> stream. <a name="a0000001581" id="a0000001581"></a> </p><p> <big class="large"><b class="bf">os.system(<img src="images/img-0030.png" alt="$x$" style="vertical-align:0px;
width:10px;
height:8px" class="math gen" />)</b></big> <br />The os.system(<img src="images/img-0030.png" alt="$x$" style="vertical-align:0px;
width:10px;
height:8px" class="math gen" />) function executes a command in a subshell. <a name="a0000001582" id="a0000001582"></a> </p><p> <big class="large"><b class="bf">os.tmpfile()</b></big> <br />The os.tmpfile() function returns a file handle for a temporary file. <a name="a0000001583" id="a0000001583"></a> </p><p> <big class="large"><b class="bf">os.uname()</b></big> <br />The os.uname() function returns a dictionary of information about the operating system. <a name="a0000001584" id="a0000001584"></a> </p></div>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0248.html" title="The fractals module"><img alt="Previous: The fractals module" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="ch-function_list.html" title="List of in-built functions"><img alt="Up: List of in-built functions" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sect0250.html" title="The os.path module"><img alt="Next: The os.path module" 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="sect0288.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>
|