by zpidey · 11y ago · 0 comments
Also: /home/on_a_phone/parse_today.sh `date +%Y%m%d`
Will fail catastrophically because cron treats '%' as a newline character for some silly reason. Have fun troubleshooting that one!
Side note - clean your damn leap second crons, Steve!
/home/on_a_phone/parse_today.sh $DATE
What about an application that takes an arbitrary date as input? Keep in mind that we're talking about production-leven infrastructures with many potentially many thousands of servers that might have 10 different distros with many thousands of differences between each machine, so falling back to "Just install X" isn't a possibility.
Then again, there's something to be said for vetting an application/script for prod-use on its "cronability". I don't think that's the point you were going for, though.