Curl shell php cron results

2019-08-23 21:46发布

I am receiving the following in my email every time the cron job is running:

What does it mean? Is something wrong? Why am I receiving this message?

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                               Dload  Upload   Total   Spent    Left  Speed

0     6    0     6    0     0     22      0 --:--:-- --:--:-- --:--:--    22
0     6    0     6    0     0     22      0 --:--:-- --:--:-- --:--:--     0

标签: php shell cron
2条回答
叛逆
2楼-- · 2019-08-23 22:08

Run with arguments eg: curl --silent yourscript.php

-s, --silent

Silent or quiet mode. Don't show progress meter or error messages. Makes Curl mute.

-S, --show-error

When used with -s it makes curl show an error message if it fails.

check http://curl.haxx.se/docs/manpage.html for more options.

查看更多
萌系小妹纸
3楼-- · 2019-08-23 22:23

You probably need to pass -s to curl if you're running it via the command line, to tell it to be silent and not output progress information to the terminal.

Pass -S as well (e.g. curl -s -S) to make it show error messages if it encounters them, even though you've otherwise silenced it.

查看更多
登录 后发表回答