version 1, including all changes.
.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
RUN-PARTS |
| |
|
2 |
!!!RUN-PARTS |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
COPYRIGHT |
| |
|
7 |
---- |
| |
|
8 |
!!NAME |
| |
|
9 |
|
| |
|
10 |
|
| |
|
11 |
run-parts - run scripts or programs in a directory |
| |
|
12 |
!!SYNOPSIS |
| |
|
13 |
|
| |
|
14 |
|
| |
|
15 |
__run-parts__ [[--test] [[--verbose] [[--report] |
| |
|
16 |
[[--umask=umask] [[--arg=argument] [[--help] [[--version] |
| |
|
17 |
directory |
| |
|
18 |
!!DESCRIPTION |
| |
|
19 |
|
| |
|
20 |
|
| |
|
21 |
__run-parts__ runs a number of scripts or programs found |
| |
|
22 |
in a single directory ''directory''. Filenames should |
| |
|
23 |
consist entirely of upper and lower case letters, digits, |
| |
|
24 |
underscores, and hyphens. Subdirectories of ''directory'' |
| |
|
25 |
and files with other names will be silently |
| |
|
26 |
ignored. |
| |
|
27 |
|
| |
|
28 |
|
| |
|
29 |
Scripts must follow the __#!/bin/interpretername__ |
| |
|
30 |
convention in order to be executed. They will not |
| |
|
31 |
automatically be executed by __/bin/sh.__ |
| |
|
32 |
|
| |
|
33 |
|
| |
|
34 |
The files found will be run in the lexical sort order of the |
| |
|
35 |
filenames. |
| |
|
36 |
|
| |
|
37 |
|
| |
|
38 |
__OPTIONS__ |
| |
|
39 |
|
| |
|
40 |
|
| |
|
41 |
__--test__ |
| |
|
42 |
|
| |
|
43 |
|
| |
|
44 |
print the names of the scripts which would be run, but don't |
| |
|
45 |
actually run them. |
| |
|
46 |
|
| |
|
47 |
|
| |
|
48 |
__--verbose__ |
| |
|
49 |
|
| |
|
50 |
|
| |
|
51 |
print the name of each script to stderr before |
| |
|
52 |
running. |
| |
|
53 |
|
| |
|
54 |
|
| |
|
55 |
__--report__ |
| |
|
56 |
|
| |
|
57 |
|
| |
|
58 |
similiar to __--verbose__, but only prints the name of |
| |
|
59 |
scripts which produce output. The script's name is printed |
| |
|
60 |
to whichever of stdout or stderr the script first produces |
| |
|
61 |
output on. |
| |
|
62 |
|
| |
|
63 |
|
| |
|
64 |
__--umask=__''umask'' |
| |
|
65 |
|
| |
|
66 |
|
| |
|
67 |
Sets the umask to ''umask'' before running the scripts. |
| |
|
68 |
''umask'' should be specified in octal. By default the |
| |
|
69 |
umask is set to 022. |
| |
|
70 |
|
| |
|
71 |
|
| |
|
72 |
__--arg=__''argument'' |
| |
|
73 |
|
| |
|
74 |
|
| |
|
75 |
Pass ''argument'' to the scripts. Use __--arg__ once |
| |
|
76 |
for each argument you want passed. |
| |
|
77 |
|
| |
|
78 |
|
| |
|
79 |
__--__ |
| |
|
80 |
|
| |
|
81 |
|
| |
|
82 |
Specifies that this is the end of the options. Any filename |
| |
|
83 |
after __--__ will be not be interpreted as an option even |
| |
|
84 |
if it starts with a hyphen. |
| |
|
85 |
|
| |
|
86 |
|
| |
|
87 |
__--help__ |
| |
|
88 |
|
| |
|
89 |
|
| |
|
90 |
Display usage information and exit. |
| |
|
91 |
|
| |
|
92 |
|
| |
|
93 |
__--version__ |
| |
|
94 |
|
| |
|
95 |
|
| |
|
96 |
Display version and copyright and exit. |
| |
|
97 |
!!COPYRIGHT |
| |
|
98 |
|
| |
|
99 |
|
| |
|
100 |
Copyright (C) 1994 Ian Jackson. Copyright (C) 1996 Jeff |
| |
|
101 |
Noxon. Copyright (C) 1996,1997,1998 Guy Maor |
| |
|
102 |
|
| |
|
103 |
|
| |
|
104 |
__run-parts__ is free software; see the GNU General |
| |
|
105 |
Public Licence version 2 or later for copying conditions. |
| |
|
106 |
There is ''no'' warranty. |
| |
|
107 |
---- |