RUN-PARTS(8) | System Manager's Manual | RUN-PARTS(8) |
run-parts - esegue script o programmi in una directory
run-parts [--test] [--verbose] [--debug] [--report] [--lsbsysinit] [--regex=RE] [--umask=umask] [--arg=argument] [--exit-on-error] [--help] [--version] [--list] [--reverse] [--] DIRECTORY
run-parts -V
run-parts esegue tutti i file eseguibili i cui nomi soddisfano i criteri descritti in seguito, che si trovano nella directory directory. Gli altri file e directory vengono silenziosamente ignorate.
Se non è specificata né l'opzione --lsbsysinit né l'opzione --regex, allora i nomi devono essere composti interamente di lettere ASCII minuscole e maiuscole, cifre ASCII, trattini bassi ASCII e trattini-meno ASCII.
If the --lsbsysinit option is given, then the names must not end in .dpkg-old or .dpkg-dist or .dpkg-new or .dpkg-tmp, and must belong to one or more of the following namespaces: the LANANA-assigned namespace (^[a-z0-9]+$); the LSB hierarchical and reserved namespaces (^_?([a-z0-9_.]+-)+[a-z0-9]+$); and the Debian cron script namespace (^[a-zA-Z0-9_-]+$).
Se viene specificata l'opzione --regex, i nomi devono corrispondere all'espressione regolare estesa personalizzata specificata come argomento di tale opzione.
Files are run sequentially in the lexical sort order (according to the C/POSIX locale character collation rules) of their names unless the --reverse option is given, in which case they are run in the opposite order.
Stampa i nomi di tutti i file in /etc che iniziano con «p» e terminano con «d»:
run-parts --list --regex '^p.*d$' /etc
Copyright (C) 1994 Ian Jackson.
Copyright (C) 1996 Jeff Noxon.
Copyright (C) 1996, 1997, 1998 Guy Maor
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Clint Adams
run-parts è software libero; vedere la GNU General Public License versione 2 o successiva per le condizioni per la copia. Non c'è alcuna garanzia.
27 giugno 2012 | Debian |