carpenter carpenter - 1 year ago 48
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?

Answer Source

I sugget to add full path to th.