I have the following line in a cron job:
1 1 * * * rm -v /srv/db/webhoneypot-$(date --date=yesterday
+%Y-%m-%d).json
I get in the journal:
Mar 30 01:01:01 rpi4rasphon CRON[1254]: (root) CMD (rm -v /srv/db/webhoneypot-
$(date --date=yesterday +)
and in the e-mail
/bin/sh: 1: Syntax error: end of file unexpected (expecting ")")
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 489 |
Nodes: | 16 (2 / 14) |
Uptime: | 56:44:20 |
Calls: | 9,673 |
Calls today: | 4 |
Files: | 13,719 |
Messages: | 6,171,089 |