Hi,
I was using jShell library on raspberry more then a year :
Since yesterday the program crash with
I was using jShell library on raspberry more then a year :
B4X:
Dim sh2 As Shell
sh2.Initialize("sh2", "curl", _
Array As String("http://192.168.52.139:8080/json.htm?type=command¶m=switchlight&idx=2&switchcmd=" & HPOn))
sh2.WorkingDirectory = "/home/pi/B4J"
sh2.Run(2000)
Wait For (sh2) ProcessCompleted(Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
affichelog("sh2 " & Success & " " & ExitCode )
If Success And ExitCode = 0 Then
Log("Success")
Log(StdOut)
Else
Log("Error: " & StdErr)
End If
Since yesterday the program crash with
fromsh2 True 139
andaffichelog("sh2 " & Success & " " & ExitCode )"
give nothingLog("Error: " & StdErr)