Bug 609200
Summary: | run-parts needs man page, does not like files with underscore? | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Scott Dowdle <dowdle> |
Component: | crontabs | Assignee: | Marcela Mašláňová <mmaslano> |
Status: | CLOSED NOTABUG | QA Contact: | qe-baseos-daemons |
Severity: | high | Docs Contact: | |
Priority: | low | ||
Version: | 5.5 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-07-26 13:49:16 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Scott Dowdle
2010-06-29 16:08:57 UTC
I can't reproduce this behaviour. You can check RHEL's run-parts script doesn't filter _. This issue shouldn't be related to crontabs. It could be permission of your script, setting of your shell, whatever else. <snip> # Ignore *~ and *, scripts for i in $1/*[^~,] ; do [ -d $i ] && continue # Don't run *.{rpmsave,rpmorig,rpmnew,swp} scripts [ "${i%.rpmsave}" != "${i}" ] && continue [ "${i%.rpmorig}" != "${i}" ] && continue [ "${i%.rpmnew}" != "${i}" ] && continue [ "${i%.swp}" != "${i}" ] && continue [ "${i%,v}" != "${i}" ] && continue </snip> If you can give me really good reproducer, then please feel free to reopen. Simply renaming the scripts made the problem go away. I didn't say it was filtering on _ but from what I understand there are a number of filename characters that run-parts does not like. When it acts up the behavior is really unpredictable. Sometimes your scripts will execute and other times they won't. It is truly bizarre and very hard to troubleshoot unless you know to get rid of _ in the filename. (In reply to comment #2) > Simply renaming the scripts made the problem go away. > > I didn't say it was filtering on _ but from what I understand there are a > number of filename characters that run-parts does not like. > I say run-parts doesn't like files which ends with: rpmsave, rpmorig, swp, ~ and contains ^ or ~. > When it acts up the behavior is really unpredictable. Sometimes your scripts > will execute and other times they won't. It is truly bizarre and very hard to > troubleshoot unless you know to get rid of _ in the filename. I've created job with underscore in cron.daily and I'll see whether it's reproducible. Job: -rw-r--r--. /etc/cron.daily/test_file |