URL, shell(curl), Why is LC so frustrating?
Posted: Wed Aug 13, 2014 2:08 am
So I want to get the contents of a URL during openStack, but it returns empty.
Now I remember something from years ago that there is an issue with when LC's internet library loads and that you have to do something or other, or wait for some point, or jump through some other hoops before you can call this function... but can't remember it, and couldn't find reference to it via search so I move on. So I'll use the shell function and curl.
'curl http://blahBlahBlah/myfile.txt' in bash shell returns:
123416
123429
But:
get "curl http://blahBlahBlah/myfile.txt"
get shell(it)
returns:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 13 100 13 0 0 28 0 --:--:-- --:--:-- --:--:-- 28
123416
123429
WTF!
Now I remember something from years ago that there is an issue with when LC's internet library loads and that you have to do something or other, or wait for some point, or jump through some other hoops before you can call this function... but can't remember it, and couldn't find reference to it via search so I move on. So I'll use the shell function and curl.
'curl http://blahBlahBlah/myfile.txt' in bash shell returns:
123416
123429
But:
get "curl http://blahBlahBlah/myfile.txt"
get shell(it)
returns:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 13 100 13 0 0 28 0 --:--:-- --:--:-- --:--:-- 28
123416
123429
WTF!