carpenter carpenter - 2 years ago 83
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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download