I usually work with BASH, but I'm trying to setup a cronjob from a machine and user account that is configured with zsh. When the cronjob runs, the date variable does not contain the date, just the string for the command to return the date.
DATE=$(date +%Y%m%d)
55 15 * * 1-5 scp user@host:/path/to/some/file/$DATE.log /tmp
I've tried
…