如何防止 rm 报告在 CURL 中找不到文件?
How to prevent rm from reporting that a file was not found in CURL?
执行命令时
curl -k HOST --user user:pass -Q "rm nosuch"
我得到答案
curl: (21) rm command failed: No such file or directory
我尝试使用-f,但结果没有改变
curl -f -k HOST --user user:pass -Q "rm -f nosuch"
curl: (21) rm command failed: No such file or directory
如何排除邮件?
您可以使用:
curl -s, --silent
执行命令时
curl -k HOST --user user:pass -Q "rm nosuch"
我得到答案
curl: (21) rm command failed: No such file or directory
我尝试使用-f,但结果没有改变
curl -f -k HOST --user user:pass -Q "rm -f nosuch"
curl: (21) rm command failed: No such file or directory
如何排除邮件?
您可以使用:
curl -s, --silent