I study shell scripts! for the same thing, I tried to load the facebook page using curl on the ubuntu terminal.
t.sh
vi@vi-Dell-7537 (Desktop) $ cat t.sh curlCmd="curl \"https://www.facebook.com/vivekkumar27june88\"" echo $curlCmd ($curlCmd) > ~/Desktop/fb.html
Error starting script like
vi@vi-Dell-7537 (Desktop) $ ./t.sh curl "https://www.facebook.com/vivekkumar27june88" curl: (1) Protocol "https not supported or disabled in libcurl
But if you run the command directly, then it works fine.
vi@vi-Dell-7537 (Desktop) $ curl "https://www.facebook.com/vivekkumar27june88" <!DOCTYPE html> <html lang="hi" id="facebook" class="no_js"> <head><meta chars.....
I would be grateful if someone would tell me the error that I am making in the script.
I checked that the curl library has ssl.
source share