I'm trying to create a log file for cron job on my jelastic/virtuozzo platform. I have a syntax to create a cron job every 2 minutes:
*/2 * * * * wget -q -O /var/www/webroot/ROOT/cron_log https://someweb.com/dev/api/order/cron-get-order
But no log file is created/updated. For information: the log is created before at var/www but it came messy because it created so many file log in that folder, so I want to make it neat.
Why
./var?I suspect that your problem is because you're not using the full path to
wget(try/usr/bin/wgetinstead)Also, since you're using
wget -q, perhaps you don't have any output to append?wget --helpexcerpt: