Mercurial > hg > octave-nkf
annotate doc/interpreter/system.txi @ 14119:94e2a76f1e5a stable
doc: Final grammarcheck and spellcheck before 3.6.0 release.
* container.txi, aspell-octave.en.pws, expr.txi, vectorize.txi, accumarray.m,
accumdim.m, interpft.m, strread.m, parseparams.m, warning_ids.m, cellfun.cc,
help.cc: grammarcheck and spellcheck docstrings.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Thu, 29 Dec 2011 06:05:00 -0800 |
parents | 5820f8ce683e |
children | 72c96de7a403 |
rev | line source |
---|---|
11523 | 1 @c Copyright (C) 1996-2011 John W. Eaton |
7018 | 2 @c |
3 @c This file is part of Octave. | |
4 @c | |
5 @c Octave is free software; you can redistribute it and/or modify it | |
6 @c under the terms of the GNU General Public License as published by the | |
7 @c Free Software Foundation; either version 3 of the License, or (at | |
8 @c your option) any later version. | |
9 @c | |
10 @c Octave is distributed in the hope that it will be useful, but WITHOUT | |
11 @c ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 @c FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 @c for more details. | |
14 @c | |
15 @c You should have received a copy of the GNU General Public License | |
16 @c along with Octave; see the file COPYING. If not, see | |
17 @c <http://www.gnu.org/licenses/>. | |
3294 | 18 |
4167 | 19 @node System Utilities |
3294 | 20 @chapter System Utilities |
21 | |
22 This chapter describes the functions that are available to allow you to | |
23 get information about what is happening outside of Octave, while it is | |
24 still running, and use this information in your program. For example, | |
25 you can get information about environment variables, the current time, | |
26 and even start other programs from the Octave prompt. | |
27 | |
28 @menu | |
29 * Timing Utilities:: | |
30 * Filesystem Utilities:: | |
6549 | 31 * File Archiving Utilities:: |
32 * Networking Utilities:: | |
3294 | 33 * Controlling Subprocesses:: |
34 * Process ID Information:: | |
35 * Environment Variables:: | |
36 * Current Working Directory:: | |
37 * Password Database Functions:: | |
38 * Group Database Functions:: | |
39 * System Information:: | |
6702 | 40 * Hashing Functions:: |
3294 | 41 @end menu |
42 | |
4167 | 43 @node Timing Utilities |
3294 | 44 @section Timing Utilities |
45 | |
46 Octave's core set of functions for manipulating time values are | |
47 patterned after the corresponding functions from the standard C library. | |
48 Several of these functions use a data structure for time that includes | |
49 the following elements: | |
50 | |
51 @table @code | |
52 @item usec | |
53 Microseconds after the second (0-999999). | |
54 | |
55 @item sec | |
56 Seconds after the minute (0-61). This number can be 61 to account | |
57 for leap seconds. | |
58 | |
59 @item min | |
60 Minutes after the hour (0-59). | |
61 | |
62 @item hour | |
63 Hours since midnight (0-23). | |
64 | |
65 @item mday | |
66 Day of the month (1-31). | |
67 | |
68 @item mon | |
69 Months since January (0-11). | |
70 | |
71 @item year | |
72 Years since 1900. | |
73 | |
74 @item wday | |
75 Days since Sunday (0-6). | |
76 | |
77 @item yday | |
78 Days since January 1 (0-365). | |
79 | |
80 @item isdst | |
81 Daylight Savings Time flag. | |
82 | |
83 @item zone | |
84 Time zone. | |
85 @end table | |
86 | |
87 @noindent | |
88 In the descriptions of the following functions, this structure is | |
89 referred to as a @var{tm_struct}. | |
90 | |
3301 | 91 @DOCSTRING(time) |
3294 | 92 |
6502 | 93 @DOCSTRING(now) |
94 | |
3294 | 95 @DOCSTRING(ctime) |
96 | |
3301 | 97 @DOCSTRING(gmtime) |
3294 | 98 |
3301 | 99 @DOCSTRING(localtime) |
3294 | 100 |
3301 | 101 @DOCSTRING(mktime) |
3294 | 102 |
3301 | 103 @DOCSTRING(asctime) |
3294 | 104 |
105 @DOCSTRING(strftime) | |
106 | |
4169 | 107 @DOCSTRING(strptime) |
108 | |
3294 | 109 Most of the remaining functions described in this section are not |
110 patterned after the standard C library. Some are available for | |
9079
4d610aba7347
Cleanup documentation for system.texi, package.texi
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
111 compatibility with @sc{matlab} and others are provided because they are |
3294 | 112 useful. |
113 | |
3301 | 114 @DOCSTRING(clock) |
3294 | 115 |
3301 | 116 @DOCSTRING(date) |
3294 | 117 |
3301 | 118 @DOCSTRING(etime) |
3294 | 119 |
3301 | 120 @DOCSTRING(cputime) |
3294 | 121 |
3301 | 122 @DOCSTRING(is_leap_year) |
3294 | 123 |
8286
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
124 @anchor{doc-toc} |
3301 | 125 @DOCSTRING(tic) |
3294 | 126 |
3301 | 127 @DOCSTRING(pause) |
3294 | 128 |
3301 | 129 @DOCSTRING(sleep) |
3294 | 130 |
3301 | 131 @DOCSTRING(usleep) |
3294 | 132 |
7984
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7018
diff
changeset
|
133 @DOCSTRING(datenum) |
6502 | 134 |
135 @DOCSTRING(datestr) | |
136 | |
137 @DOCSTRING(datevec) | |
138 | |
7984
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7018
diff
changeset
|
139 @DOCSTRING(addtodate) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7018
diff
changeset
|
140 |
6502 | 141 @DOCSTRING(calendar) |
142 | |
143 @DOCSTRING(weekday) | |
144 | |
145 @DOCSTRING(eomday) | |
146 | |
8286
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
147 @DOCSTRING(datetick) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
148 |
4167 | 149 @node Filesystem Utilities |
3294 | 150 @section Filesystem Utilities |
151 | |
12575
d0b799dafede
Grammarcheck files for 3.4.1 release.
Rik <octave@nomad.inbox5.com>
parents:
12568
diff
changeset
|
152 Octave includes many utility functions for copying, moving, renaming, and |
d0b799dafede
Grammarcheck files for 3.4.1 release.
Rik <octave@nomad.inbox5.com>
parents:
12568
diff
changeset
|
153 deleting files; for creating, reading, and deleting directories; for retrieving |
12211
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
154 status information on files; and for manipulating file and path names. |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
155 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
156 @DOCSTRING(movefile) |
3294 | 157 |
3301 | 158 @DOCSTRING(rename) |
3294 | 159 |
12211
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
160 @DOCSTRING(copyfile) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
161 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
162 @DOCSTRING(unlink) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
163 |
3710 | 164 @DOCSTRING(link) |
165 | |
166 @DOCSTRING(symlink) | |
167 | |
4169 | 168 @DOCSTRING(readlink) |
169 | |
3301 | 170 @DOCSTRING(mkdir) |
3294 | 171 |
3301 | 172 @DOCSTRING(rmdir) |
3294 | 173 |
6550 | 174 @DOCSTRING(confirm_recursive_rmdir) |
175 | |
3301 | 176 @DOCSTRING(mkfifo) |
3294 | 177 |
3301 | 178 @DOCSTRING(umask) |
3294 | 179 |
8549 | 180 @anchor{doc-lstat} |
3301 | 181 @DOCSTRING(stat) |
3294 | 182 |
12211
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
183 @DOCSTRING(S_ISBLK) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
184 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
185 @DOCSTRING(S_ISCHR) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
186 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
187 @DOCSTRING(S_ISDIR) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
188 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
189 @DOCSTRING(S_ISFIFO) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
190 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
191 @DOCSTRING(S_ISLNK) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
192 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
193 @DOCSTRING(S_ISREG) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
194 |
12212
f1ab2a12b4f4
Add S_ISSOCK function to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12211
diff
changeset
|
195 @DOCSTRING(S_ISSOCK) |
f1ab2a12b4f4
Add S_ISSOCK function to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12211
diff
changeset
|
196 |
6549 | 197 @DOCSTRING(fileattrib) |
198 | |
199 @DOCSTRING(isdir) | |
200 | |
12211
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
201 @DOCSTRING(readdir) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
202 |
3301 | 203 @DOCSTRING(glob) |
3294 | 204 |
3428 | 205 @DOCSTRING(fnmatch) |
206 | |
3301 | 207 @DOCSTRING(file_in_path) |
3294 | 208 |
12211
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
209 @DOCSTRING(filesep) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
210 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
211 @DOCSTRING(filemarker) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
212 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
213 @DOCSTRING(fileparts) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
214 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
215 @DOCSTRING(fullfile) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
216 |
3301 | 217 @DOCSTRING(tilde_expand) |
3294 | 218 |
6549 | 219 @DOCSTRING(canonicalize_file_name) |
220 | |
12211
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
221 @DOCSTRING(make_absolute_filename) |
6549 | 222 |
8817
03b7f618ab3d
include docstrings for new functions in the manual
John W. Eaton <jwe@octave.org>
parents:
8653
diff
changeset
|
223 @DOCSTRING(is_absolute_filename) |
03b7f618ab3d
include docstrings for new functions in the manual
John W. Eaton <jwe@octave.org>
parents:
8653
diff
changeset
|
224 |
03b7f618ab3d
include docstrings for new functions in the manual
John W. Eaton <jwe@octave.org>
parents:
8653
diff
changeset
|
225 @DOCSTRING(is_rooted_relative_filename) |
03b7f618ab3d
include docstrings for new functions in the manual
John W. Eaton <jwe@octave.org>
parents:
8653
diff
changeset
|
226 |
12211
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
227 @DOCSTRING(P_tmpdir) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
228 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
229 @DOCSTRING(tempdir) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
230 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
231 @DOCSTRING(tempname) |
8817
03b7f618ab3d
include docstrings for new functions in the manual
John W. Eaton <jwe@octave.org>
parents:
8653
diff
changeset
|
232 |
13843
c299b26d0e6b
missing change from changeset 69afe121f07e
John W. Eaton <jwe@octave.org>
parents:
12580
diff
changeset
|
233 @DOCSTRING(recycle) |
c299b26d0e6b
missing change from changeset 69afe121f07e
John W. Eaton <jwe@octave.org>
parents:
12580
diff
changeset
|
234 |
6549 | 235 @node File Archiving Utilities |
236 @section File Archiving Utilities | |
237 | |
238 @DOCSTRING(bunzip2) | |
239 | |
6868 | 240 @DOCSTRING(gzip) |
241 | |
6549 | 242 @DOCSTRING(gunzip) |
243 | |
244 @DOCSTRING(tar) | |
245 | |
246 @DOCSTRING(untar) | |
247 | |
248 @DOCSTRING(zip) | |
249 | |
250 @DOCSTRING(unzip) | |
251 | |
252 @DOCSTRING(unpack) | |
253 | |
8286
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
254 @DOCSTRING(bzip2) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
255 |
6549 | 256 @node Networking Utilities |
257 @section Networking Utilities | |
258 | |
9880 | 259 @menu |
11255
d682cd6669ac
Update info-based documentation menus to include new nodes.
Rik <octave@nomad.inbox5.com>
parents:
9891
diff
changeset
|
260 * FTP Objects:: |
d682cd6669ac
Update info-based documentation menus to include new nodes.
Rik <octave@nomad.inbox5.com>
parents:
9891
diff
changeset
|
261 * URL Manipulation:: |
9880 | 262 @end menu |
263 | |
12514
e5e66c389597
Add gethostname to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12512
diff
changeset
|
264 @DOCSTRING(gethostname) |
e5e66c389597
Add gethostname to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12512
diff
changeset
|
265 |
11255
d682cd6669ac
Update info-based documentation menus to include new nodes.
Rik <octave@nomad.inbox5.com>
parents:
9891
diff
changeset
|
266 @node FTP Objects |
d682cd6669ac
Update info-based documentation menus to include new nodes.
Rik <octave@nomad.inbox5.com>
parents:
9891
diff
changeset
|
267 @subsection FTP Objects |
9880 | 268 |
9891
1506a17832c9
doc building fixes for class methods
John W. Eaton <jwe@octave.org>
parents:
9880
diff
changeset
|
269 @DOCSTRING(@ftp/ftp) |
9880 | 270 |
9891
1506a17832c9
doc building fixes for class methods
John W. Eaton <jwe@octave.org>
parents:
9880
diff
changeset
|
271 @DOCSTRING(@ftp/mget) |
9880 | 272 |
9891
1506a17832c9
doc building fixes for class methods
John W. Eaton <jwe@octave.org>
parents:
9880
diff
changeset
|
273 @DOCSTRING(@ftp/mput) |
9880 | 274 |
9891
1506a17832c9
doc building fixes for class methods
John W. Eaton <jwe@octave.org>
parents:
9880
diff
changeset
|
275 @DOCSTRING(@ftp/ascii) |
9880 | 276 |
9891
1506a17832c9
doc building fixes for class methods
John W. Eaton <jwe@octave.org>
parents:
9880
diff
changeset
|
277 @DOCSTRING(@ftp/binary) |
9880 | 278 |
11255
d682cd6669ac
Update info-based documentation menus to include new nodes.
Rik <octave@nomad.inbox5.com>
parents:
9891
diff
changeset
|
279 @node URL Manipulation |
d682cd6669ac
Update info-based documentation menus to include new nodes.
Rik <octave@nomad.inbox5.com>
parents:
9891
diff
changeset
|
280 @subsection URL Manipulation |
9880 | 281 |
6549 | 282 @DOCSTRING(urlread) |
283 | |
284 @DOCSTRING(urlwrite) | |
285 | |
4167 | 286 @node Controlling Subprocesses |
3294 | 287 @section Controlling Subprocesses |
288 | |
289 Octave includes some high-level commands like @code{system} and | |
290 @code{popen} for starting subprocesses. If you want to run another | |
291 program to perform some task and then look at its output, you will | |
292 probably want to use these functions. | |
293 | |
294 Octave also provides several very low-level Unix-like functions which | |
295 can also be used for starting subprocesses, but you should probably only | |
296 use them if you can't find any way to do what you need with the | |
297 higher-level functions. | |
298 | |
3301 | 299 @DOCSTRING(system) |
3294 | 300 |
6549 | 301 @DOCSTRING(unix) |
302 | |
303 @DOCSTRING(dos) | |
304 | |
7984
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7018
diff
changeset
|
305 @DOCSTRING(perl) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7018
diff
changeset
|
306 |
13859
6d59b141e65d
Add python to manual and respect format rules of copyright block
Carnë Draug <carandraug+dev@gmail.com>
parents:
12580
diff
changeset
|
307 @DOCSTRING(python) |
6d59b141e65d
Add python to manual and respect format rules of copyright block
Carnë Draug <carandraug+dev@gmail.com>
parents:
12580
diff
changeset
|
308 |
3301 | 309 @DOCSTRING(popen) |
3294 | 310 |
3301 | 311 @DOCSTRING(pclose) |
3294 | 312 |
3301 | 313 @DOCSTRING(popen2) |
3294 | 314 |
3301 | 315 @DOCSTRING(EXEC_PATH) |
3294 | 316 |
317 In most cases, the following functions simply decode their arguments and | |
318 make the corresponding Unix system calls. For a complete example of how | |
319 they can be used, look at the definition of the function @code{popen2}. | |
320 | |
3301 | 321 @DOCSTRING(fork) |
3294 | 322 |
3301 | 323 @DOCSTRING(exec) |
3294 | 324 |
3301 | 325 @DOCSTRING(pipe) |
3294 | 326 |
3301 | 327 @DOCSTRING(dup2) |
3294 | 328 |
3301 | 329 @DOCSTRING(waitpid) |
3294 | 330 |
8286
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
331 @DOCSTRING(WCONTINUE) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
332 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
333 @DOCSTRING(WCOREDUMP) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
334 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
335 @DOCSTRING(WEXITSTATUS) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
336 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
337 @DOCSTRING(WIFCONTINUED) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
338 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
339 @DOCSTRING(WIFSIGNALED) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
340 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
341 @DOCSTRING(WIFSTOPPED) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
342 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
343 @DOCSTRING(WIFEXITED) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
344 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
345 @DOCSTRING(WNOHANG) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
346 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
347 @DOCSTRING(WSTOPSIG) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
348 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
349 @DOCSTRING(WTERMSIG) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
350 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
351 @DOCSTRING(WUNTRACED) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
352 |
3301 | 353 @DOCSTRING(fcntl) |
3294 | 354 |
6549 | 355 @DOCSTRING(kill) |
356 | |
357 @DOCSTRING(SIG) | |
358 | |
4167 | 359 @node Process ID Information |
3294 | 360 @section Process, Group, and User IDs |
361 | |
3301 | 362 @DOCSTRING(getpgrp) |
3294 | 363 |
3301 | 364 @DOCSTRING(getpid) |
3294 | 365 |
3301 | 366 @DOCSTRING(getppid) |
3294 | 367 |
3301 | 368 @DOCSTRING(geteuid) |
3294 | 369 |
3301 | 370 @DOCSTRING(getuid) |
3294 | 371 |
3301 | 372 @DOCSTRING(getegid) |
3294 | 373 |
3301 | 374 @DOCSTRING(getgid) |
3294 | 375 |
4167 | 376 @node Environment Variables |
3294 | 377 @section Environment Variables |
378 | |
3301 | 379 @DOCSTRING(getenv) |
3294 | 380 |
3301 | 381 @DOCSTRING(putenv) |
3294 | 382 |
4167 | 383 @node Current Working Directory |
3294 | 384 @section Current Working Directory |
385 | |
3301 | 386 @DOCSTRING(cd) |
3294 | 387 |
3301 | 388 @DOCSTRING(ls) |
3294 | 389 |
6549 | 390 @DOCSTRING(ls_command) |
391 | |
392 @DOCSTRING(dir) | |
393 | |
3301 | 394 @DOCSTRING(pwd) |
3294 | 395 |
4167 | 396 @node Password Database Functions |
3294 | 397 @section Password Database Functions |
398 | |
399 Octave's password database functions return information in a structure | |
400 with the following fields. | |
401 | |
402 @table @code | |
403 @item name | |
404 The user name. | |
405 | |
406 @item passwd | |
407 The encrypted password, if available. | |
408 | |
409 @item uid | |
410 The numeric user id. | |
411 | |
412 @item gid | |
413 The numeric group id. | |
414 | |
415 @item gecos | |
416 The GECOS field. | |
417 | |
418 @item dir | |
419 The home directory. | |
420 | |
421 @item shell | |
422 The initial shell. | |
423 @end table | |
424 | |
425 In the descriptions of the following functions, this data structure is | |
426 referred to as a @var{pw_struct}. | |
427 | |
3301 | 428 @DOCSTRING(getpwent) |
3294 | 429 |
3301 | 430 @DOCSTRING(getpwuid) |
3294 | 431 |
3301 | 432 @DOCSTRING(getpwnam) |
3294 | 433 |
3301 | 434 @DOCSTRING(setpwent) |
3294 | 435 |
3301 | 436 @DOCSTRING(endpwent) |
3294 | 437 |
4167 | 438 @node Group Database Functions |
3294 | 439 @section Group Database Functions |
440 | |
441 Octave's group database functions return information in a structure | |
442 with the following fields. | |
443 | |
444 @table @code | |
445 @item name | |
446 The user name. | |
447 | |
448 @item passwd | |
449 The encrypted password, if available. | |
450 | |
451 @item gid | |
452 The numeric group id. | |
453 | |
454 @item mem | |
455 The members of the group. | |
456 @end table | |
457 | |
458 In the descriptions of the following functions, this data structure is | |
459 referred to as a @var{grp_struct}. | |
460 | |
3301 | 461 @DOCSTRING(getgrent) |
3294 | 462 |
3301 | 463 @DOCSTRING(getgrgid) |
464 | |
465 @DOCSTRING(getgrnam) | |
3294 | 466 |
3301 | 467 @DOCSTRING(setgrent) |
3294 | 468 |
3301 | 469 @DOCSTRING(endgrent) |
3294 | 470 |
4167 | 471 @node System Information |
3294 | 472 @section System Information |
473 | |
3301 | 474 @DOCSTRING(computer) |
3294 | 475 |
6549 | 476 @DOCSTRING(uname) |
477 | |
12512
77b14e634166
Replace nprocs with nproc function. Use gnulib module for portability across platforms.
Iain Murray <iain@iainmurray.net>
parents:
12510
diff
changeset
|
478 @DOCSTRING(nproc) |
12510
a1b2da4967ac
Add nproc, nproc_conf utility functions for determining number of available processors.
Iain Murray <iain@iainmurray.net>
parents:
12212
diff
changeset
|
479 |
6549 | 480 @DOCSTRING(ispc) |
481 | |
482 @DOCSTRING(isunix) | |
483 | |
8286
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
484 @DOCSTRING(ismac) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
485 |
3301 | 486 @DOCSTRING(isieee) |
3294 | 487 |
12568
b22816427ce9
Add isdeployed function to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12514
diff
changeset
|
488 @DOCSTRING(isdeployed) |
b22816427ce9
Add isdeployed function to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12514
diff
changeset
|
489 |
6623 | 490 @DOCSTRING(OCTAVE_HOME) |
491 | |
12208
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11535
diff
changeset
|
492 @DOCSTRING(matlabroot) |
3294 | 493 |
12208
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11535
diff
changeset
|
494 @DOCSTRING(OCTAVE_VERSION) |
8286
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
495 |
6623 | 496 @DOCSTRING(version) |
497 | |
498 @DOCSTRING(ver) | |
499 | |
12208
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11535
diff
changeset
|
500 @DOCSTRING(compare_versions) |
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11535
diff
changeset
|
501 |
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11535
diff
changeset
|
502 @DOCSTRING(license) |
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11535
diff
changeset
|
503 |
3301 | 504 @DOCSTRING(octave_config_info) |
3294 | 505 |
13943
5820f8ce683e
doc: Add undocumented functions to manual for 3.6.0 release
Rik <octave@nomad.inbox5.com>
parents:
13860
diff
changeset
|
506 @DOCSTRING(usejava) |
5820f8ce683e
doc: Add undocumented functions to manual for 3.6.0 release
Rik <octave@nomad.inbox5.com>
parents:
13860
diff
changeset
|
507 |
3301 | 508 @DOCSTRING(getrusage) |
6702 | 509 |
510 @node Hashing Functions | |
511 @section Hashing Functions | |
512 | |
513 It is often necessary to find if two strings or files are | |
9079
4d610aba7347
Cleanup documentation for system.texi, package.texi
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
514 identical. This might be done by comparing them character by character |
4d610aba7347
Cleanup documentation for system.texi, package.texi
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
515 and looking for differences. However, this can be slow, and so comparing |
6702 | 516 a hash of the string or file can be a rapid way of finding if the files |
517 differ. | |
518 | |
9079
4d610aba7347
Cleanup documentation for system.texi, package.texi
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
519 Another use of the hashing function is to check for file integrity. The |
6702 | 520 user can check the hash of the file against a known value and find if |
521 the file they have is the same as the one that the original hash was | |
522 produced with. | |
523 | |
7007 | 524 Octave supplies the @code{md5sum} function to perform MD5 hashes on |
9079
4d610aba7347
Cleanup documentation for system.texi, package.texi
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
525 strings and files. An example of the use of @code{md5sum} function might |
6702 | 526 be |
527 | |
528 @example | |
529 @group | |
530 if exist (file, "file") | |
531 hash = md5sum (file); | |
532 else | |
533 # Treat the variable "file" as a string | |
534 hash = md5sum (file, true); | |
535 endif | |
536 @end group | |
537 @end example | |
538 | |
539 @DOCSTRING(md5sum) |