Open georgecj11 opened 7 years ago
Could you give me more input ? Because from my quick tests it runs fine :
bash$ sleep 1 ; echo $?
0
And with jassh :
bash$ sbt console
scala> import fr.janalyse.ssh._
scala> import java.io.File
scala> SSH("localhost", "test").execOnceWithStatus("sleep 1")
res0: (String, Int) = ("",0)
scala> SSH("localhost", "test").execOnceWithStatus("sleep 1")
res1: (String, Int) = ("",0)
David.
I have seen at times the sleep command is returning status as -1(which is the default status). If I re-run the same program, it will work. Also I am connecting to localhost, which means its not a network issue