I'm executing this command in terminal and it works just fine:
curl -d "sentence=Jack sold the car to Jenny" austen.cs.illinois.edu:8082/parse
On the other hand executing things don't seem to be working in Scala:
import sys.process._
val output = s"""curl -d \"sentence=Jack sold the car to Jenny\" austen.cs.illinois.edu:8082/parse""".!!
println(output.split("\t"))
which outputs:
[error] % Total % Received % Xferd Average Speed Time Time Time Current
[error] Dload Upload Total Spent Left Speed
[error]
[error] 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: sold
[error] curl: (6) Could not resolve host: the
[error]
[error] 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: car
[error] curl: (6) Could not resolve host: to
[error] curl: (6) Could not resolve host: Jenny"
[error]
[error] 100 37 100 23 100 14 153 93 --:--:-- --:--:-- --:--:-- 153
Thoughts why I see different behaviors here?