Personal website mostly for my notes and resume
06 Jul 2018
Today I learned about the command run-parts
while looking for information on hooks with certbot.
Its simple description is:
run-parts - run scripts or programs in a directory
Very useful when you want to add the dir.d concept in one of your scripts.
It was not obvious to me right away when reading the manpage, but the scripts that you place in the directory that you will point run-parts to, should not have extensions.
i.e:
# /scripts
# a.sh
# b.sh
# c.sh
run-parts /scripts
# Will not execute anything
#
# But with /scripts
# a
# b
# c
run-parts /scripts
# Will execute the 3 scripts a,b and c