#51: Broken shell command substitution in crontab
Solved!
In a cronjob, I want to execute a date sub-command and substitute the results in place into the overall shell command. Something like:
1 5 * * * bash -c 'cp /foo/bar /foo/bar.$(date +%Y%m%d).sql'
Unfortunately, this breaks with an error at runtime:
/bin...