失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > curl shell 失败_linux – curl命令不在bash中通过shell脚本执行

curl shell 失败_linux – curl命令不在bash中通过shell脚本执行

时间:2024-04-21 01:46:47

相关推荐

curl shell 失败_linux – curl命令不在bash中通过shell脚本执行

我正在学习

shell脚本!同样我尝试在ubuntu终端上使用curl下载facebook页面.

t.sh内容

vi@vi-Dell-7537(Desktop) $cat t.sh

curlCmd="curl \"/vivekkumar27june88\""

echo $curlCmd

($curlCmd) > ~/Desktop/fb.html

运行脚本时出错

vi@vi-Dell-7537(Desktop) $./t.sh

curl "/vivekkumar27june88"

curl: (1) Protocol "https not supported or disabled in libcurl

但是如果直接运行命令那么它工作正常.

vi@vi-Dell-7537(Desktop) $curl "/vivekkumar27june88"

如果有人让我知道我在剧本中所犯的错误,我将不胜感激.

我已经验证了curl库启用了ssl.

如果觉得《curl shell 失败_linux – curl命令不在bash中通过shell脚本执行》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。