Sub Shutdown
Dim myshell As Shell
myshell.Initialize("shl","shutdown.sh",Null)
myshell.WorkingDirectory = "/home/pi/telmachine/"
myshell.Run(10000)
End Sub
When I try to execute I get this error
Error: org.apache.commons.exec.ExecuteException: Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "shutdown.sh" (in directory "/home/pi/telmachine"): error=2, Bestand of map bestaat niet)
Sub Shutdown
Dim myshell As Shell
myshell.Initialize("myshell","shutdown.sh",Null)
myshell.WorkingDirectory = "/home/pi/telmachine/"
myshell.Run(-1)
End Sub
Sub Shutdown
Dim myshell As Shell
myshell.Initialize("shl","sh",Array as string("shutdown.sh"))
myshell.WorkingDirectory = "/home/pi/telmachine/"
myshell.Run(10000)
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.