>~/log works well and adds a line to the log file with There are rows with total_time. But the same line as cron does nothing. It's not a path issue as curlmyurl.com>>~/log works.">
I'm having a cron problem with curl
:
curl -w "%{time_total}\n" -o /dev/null -s http://myurl.com >> ~/log< ;/pre>Works great and adds a line with total_time in the log file.
But the same line as cron does nothing.
This is not a path issue, since
curl http://myurl.com >> ~/log
works.
%
is a special character forcrontab
. Fromman 5 crontab
:So you need to escape the
%
characters:to