Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use run-parts to run all scripts under a directory,the same way crontab does. But the jobs deny and jobs allow don't block any of the scripts in the directory.

rajeevs@rajeev:/home/rajeevs/test$: ls

$:cat jobs.deny

$:run-parts .
hello a
hello b

Any idea about this strange behavior?

share|improve this question
Please don't cross-po‌​st... – sr_ Dec 5 '12 at 7:37
Are you sure your run-parts knows about jobs.deny? (Check man run-parts.) Debian's (package debianutils) doesn't. – sr_ Dec 5 '12 at 8:21
Thanks :-)switched to cent os :-) – rjv Dec 8 '12 at 6:23

Run-parts will ignore scripts with "." in their name. (Or at least, it did, when i last checked a few years ago)

Please see the man page (or the run-parts script itself) for details.

share|improve this answer
The comment on the question is the correct answer.my situation insists in using the allow and deny files. – rjv Dec 8 '12 at 6:23
Ah, apologies, I completely misread completely your question! I thought you wanted run-parts to run that file instead of taking it into account to deny running the other 2. Sorry! And thanks for that comment. – Olivier Dulac Dec 8 '12 at 10:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.