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

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

Geoff Hayes
Geoff Hayes 2014년 4월 30일
I have a Mac too, and running the above command system('curl www.google.com') (or system('curl www.google.ca')) works fine. What happens if you (outside of MATLAB) launch a Terminal window and type curl www.google.com? Do you see the same error?
Matthew Behr
Matthew Behr 2015년 2월 23일
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

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
Walter Roberson 2014년 4월 30일

0 개 추천

system("curl http://www.google.com")

댓글 수: 3

Image Analyst
Image Analyst 2014년 4월 30일
Don't you mean single quotes?
wei
wei 2014년 4월 30일
yeah sorry, I meant it didn't work with single quote.
wei
wei 2014년 4월 30일
and double quote won't work either.

댓글을 달려면 로그인하십시오.

Ray Lee
Ray Lee 2014년 8월 11일

0 개 추천

where is your libcurl.so

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

질문:

wei
2014년 4월 30일

댓글:

2015년 2월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by