system('curl www.google.com') doesn't work
Mostrar comentarios más antiguos
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 comentarios
Geoff Hayes
el 30 de Abr. de 2014
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
el 23 de Feb. de 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
Matthew Behr
el 23 de Feb. de 2015
Check out this discussion. Has a fix: http://www.mathworks.com/matlabcentral/answers/42381-can-t-execute-curl
Respuestas (2)
Walter Roberson
el 30 de Abr. de 2014
system("curl http://www.google.com")
3 comentarios
Image Analyst
el 30 de Abr. de 2014
Don't you mean single quotes?
wei
el 30 de Abr. de 2014
wei
el 30 de Abr. de 2014
Ray Lee
el 11 de Ag. de 2014
0 votos
where is your libcurl.so
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!