system('curl www.google.com') doesn't work

11 Ansichten (letzte 30 Tage)
wei
wei am 30 Apr. 2014
Kommentiert: Matthew Behr am 23 Feb. 2015
Hi, everyone. I ran into some trouble when I tried to ran this in matlab 'system('curl www.google.com')'. Matlab prompts: curl: (48) An unknown option was passed in to libcurl
ans =
48
I spent long time on trying to fix it. But nothing seem to work.
I am using Matlab 2014a on a Mac.
Thank you.
  3 Kommentare
Matthew Behr
Matthew Behr am 23 Feb. 2015
I am having the same issue also. I can use system('curl -h'). But all other options such as system('curl www.google.com') fail with the same message:
curl: (48) An unknown option was passed in to libcurl

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Walter Roberson
Walter Roberson am 30 Apr. 2014
system("curl http://www.google.com")
  3 Kommentare
wei
wei am 30 Apr. 2014
yeah sorry, I meant it didn't work with single quote.
wei
wei am 30 Apr. 2014
and double quote won't work either.

Melden Sie sich an, um zu kommentieren.


Ray Lee
Ray Lee am 11 Aug. 2014
where is your libcurl.so

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by