P粉3402642832023-08-25 10:13:48
%
is a special character for crontab
. From man 5 crontab
:
So you need to escape the %
characters:
curl -w "%{time_total}\n" -o /dev/null -s http://myurl.com >> ~/log
to
curl -w "\%{time_total}\n" -o /dev/null -s http://myurl.com >> ~/log ^