jassh icon indicating copy to clipboard operation
jassh copied to clipboard

Exit code of -1

Open georgecj11 opened this issue 8 years ago • 1 comments

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

georgecj11 avatar Dec 08 '16 10:12 georgecj11

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.

dacr avatar Sep 29 '17 20:09 dacr