I have a Ubuntu 16.04.2 LTS cloud server online 24/7. There are many cronjob running on this server. There is a news website that I want to save a timestamped version of the cover page of every 20 minutes. I have created a WGET statement that runs perfectly from the command line.
wget --convert-links --output-document=/home/username/News-Headlines-$(date +%Y-%m-%d_%H:%M:%S).html news.tld
*/20 * * * * /usr/bin/wget --convert-links --output-document=/home/username/News-Headlines-$(date +%Y-%m-%d_%H:%M:%S).html news.tld
When this statement is run from the root cronjob, the file is not created and no error is produced in the /var/log/syslog
How can this WGET root cronjob statement be made to work?
An error began being mailed by cron: /bin/sh: 1: Syntax error: end of file unexpected (expecting ")")
The root crontab file does have a blank line at the end. To what is this error referring ?