1

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
a
b
jobs.deny

$:cat jobs.deny
a
b

$:run-parts .
hello a
hello b

Any idea about this strange behavior?

1

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.

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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