Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
4  
Please don't cross-po‌​st... –  sr_ Dec 5 '12 at 7:37
3  
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

1 Answer 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.

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

 
discard

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.