RUN-PARTS(8) | System Manager's Manual | RUN-PARTS(8) |
run-parts - ディレクトリにあるスクリプト・プログラムの実行
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 は、ディレクトリ directory にある、以下に述べる制約による名前を持つ実行ファイルを、すべて実行します。その他のファイルやディレクトリは、黙って無視します。
--lsbsysinit オプションと --regex オプションのどちらも指定しない場合、このファイル名全体が ASCII の大文字小文字と ASCII の数字、ASCII のアンダースコアと 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_-]+$).
--regex オプションを指定した場合、オプションの引数に与えた正規表現に一致する名前でなければなりません。
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.
/etc にある `p' で始まり `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 is free software; see the GNU General Public License version 2 or later for copying conditions. There is no warranty.
倉澤 望 <nabetaro@debian.or.jp>, 2012
Debian JP Documentation ML <debian-doc@debian.or.jp>
27 Jun 2012 | Debian |