carpenter carpenter - 8 months ago 32
Scala Question

Run custom external command from scala

I am trying to integrate torch, with scala.

I have following bash script (

echo hello world
th *rest of command*

and I try to execute it in scala to get some output:

"./" !!

However it gives me an error:

line 42: th: command not found

Is there any workaround to get this working?


I sugget to add full path to th.