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 のマイナス・ハイフンでできていなければなりません。
--lsbsysinit オプションを指定した場合、ファイル名の末尾が .dpkg-old や .dpkg-dist や .dpkg-new や .dpkg-tmp で終わっていてはいけません。また以下の名前空間のいずれかに属していなければなりません。LANANA 指定名前空間 (^[a-z0-9]+$)、LSB 階層予約名前空間 (^_?([a-z0-9_.]+-)+[a-z0-9]+$)、Debian cron スクリプト名前空間 (^[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 |