0
$\begingroup$

So what is the best way to do the following in ubuntu?

Import["!wget -qO- http://google.com", "Text"]

I'm on 16.04 and can't get any output. A patch or workaround would be appreciated. As pointed out in the comments Import["!which yes", "Text"] so there is some output that is available.

$\endgroup$
9
  • $\begingroup$ Does which ls work better? $\endgroup$
    – ilian
    Oct 14, 2016 at 16:26
  • $\begingroup$ @ilian I'm an idiot editing question $\endgroup$
    – William
    Oct 14, 2016 at 16:26
  • $\begingroup$ For the second question, try Import["!LD_LIBRARY_PATH= wget -qO- http://google.com", "Text"] $\endgroup$
    – ilian
    Oct 14, 2016 at 16:37
  • 1
    $\begingroup$ I would try specifying the full path to wget $\endgroup$
    – mikado
    Oct 14, 2016 at 17:29
  • 1
    $\begingroup$ It is the same issue as in (88059). The workaround should not be necessary in version 11 and later. $\endgroup$
    – ilian
    Oct 14, 2016 at 18:49

0

Browse other questions tagged or ask your own question.