run all the scripts in a directory

run-parts [--test|--list] [--verbose|--report] [--lsbsysinit] [--regex=xre] [--umask=umask] [--arg=argument]
          [--exit-on-error] [--help] [--version] [--reverse] [--] directory

run-parts -V

Names consist of upper/lower-case letters, digits, underscores and hyphens unless --lsbsysinit nor --regex is given . With --regex names must match eXtended regular expression.

Files are run in the lexical sort order of their names unless --reverse is given.

--test only output names of executables which would be run. (useful with --regex)
--list only output names of the all matching files (not limited to executables).
--new-session run each executable as a separate process. Killing run-partso will not kill the currently running script,
sets umask before running the scripts. default 022.
--exit-on-error Stop processing if a non-zero exit code is returned.
output the name of each script to stderr before running.
--report only output names which produce output to whichever of stdout or stderr first produces output
--reverse reverse the scripts' execution order.
--lsbsysinit use LSB namespaces instead of classical behavior.

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:

  1. LANANA-assigned namespace (^[a-z0-9]+$);
  2. the LSB hierarchical and reserved namespaces (^_?([a-z0-9_.]+-)+[a-z0-9]+$); and the
  3. Debian cron script namespace (^[a-zA-Z0-9_-]+$).
--regex=RE validate filenames against custom extended regular expression XRE.
pass argument to the scripts. Use --arg once for each argument you want passed.
-- specifies that this is the end of the options. Any filename after -- will be not be interpreted as an option even if it starts with a hyphen.
display usage information and exit.
display version and copyright and exit.


Print the names of all files in /etc that start with `p' and end with `d': run-parts --list --regex '^p.*d$' /etc