I'm writing files out to a log ran by a bash script using cron. The call on cron looks like this:
*/25 * * * * bash script.sh > "/var/log/$(date +%Y-%m-%d_%H:%M).log"
But when I check the crontab it records as
*/25 * * * * bash script.sh > "/var/log/$(date +).log"
And it never writes the log file. Is there something I need to change to get cron to write the date?