curl shell 失败_linux – curl命令不在bash中通过shell脚本执行
生活随笔
收集整理的這篇文章主要介紹了
curl shell 失败_linux – curl命令不在bash中通过shell脚本执行
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
我正在學(xué)習(xí)
shell腳本!同樣我嘗試在ubuntu終端上使用curl下載facebook頁面.
t.sh內(nèi)容
vi@vi-Dell-7537(Desktop) $cat t.sh
curlCmd="curl \"https://www.facebook.com/vivekkumar27june88\""
echo $curlCmd
($curlCmd) > ~/Desktop/fb.html
運(yùn)行腳本時出錯
vi@vi-Dell-7537(Desktop) $./t.sh
curl "https://www.facebook.com/vivekkumar27june88"
curl: (1) Protocol "https not supported or disabled in libcurl
但是如果直接運(yùn)行命令那么它工作正常.
vi@vi-Dell-7537(Desktop) $curl "https://www.facebook.com/vivekkumar27june88"
如果有人讓我知道我在劇本中所犯的錯誤,我將不勝感激.
我已經(jīng)驗證了curl庫啟用了ssl.
總結(jié)
以上是生活随笔為你收集整理的curl shell 失败_linux – curl命令不在bash中通过shell脚本执行的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java get properties_
- 下一篇: kafka集群为什么需要三个节点_大白话