Weblog entry #6 for shortpath
#6
Getting bit by .sh
Posted by shortpath on Mon 26 Feb 2007 at 17:21
The other day, I was going through system mail to make sure everything was working (and reporting) properly. A script that I had put in /etc/cron.daily wasn't sending me any mail, which was odd: it ran fine when I started it manually. After a little digging, it turns out that run-parts will ignore some items based on namespace requirements and my script had a .sh suffix. I know it's not a necessary thing to have, but it helps me keep track at a glance what stuff I've put in that directory. So, running run-parts --test /your/directory will tell you what run-parts will actually run. If you want to know more about the namespace requirements, check out the man page for run-parts.
Comments on this Entry
Posted by dkg (216.254.xx.xx) on Fri 2 Mar 2007 at 18:30
[ Send Message | View dkg's Scratchpad | View Weblogs ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
Sweet! I've gotten bit by run-parts' naming scheme before too. i didn't know about:
run-parts --test /your/directoryIt will definitely be useful. Thanks for posting the tip.
[ Parent | Reply to this comment ]