DiKey
(Dim)
February 9, 2016, 1:20pm
1
I try to run the program balabolka_console.exe in rules:
executeCommandLine( “c:/balabolka/balabolka_console.exe -t some text”)
Does not work! Тo error logs.
I run from the command line c:/balabolka/balabolka_console.exe -t some text
So works and say “some text”
Why does not work in the rules?
watou
(John Cocula)
February 9, 2016, 3:58pm
2
Could you supply the log entries it gave you? Which version of openHAB are you using?
rlkoshak
(Rich Koshak)
February 9, 2016, 5:51pm
3
Change your call to the following:
val results = executeCommandLine("c:/balabolka/balabolka_console.exe -t some text", 5000)
logInfo("Exec", "Results from balabolka:\n" + results)
Then check the logs for what your executable is returning. There may be an error and this is the only way to see that error.
1 Like
DiKey
(Dim)
February 10, 2016, 10:54am
4
After normal execution in openhab.log:
2016-02-10 13:46:30.720 [INFO ] [g.openhab.io.net.exec.ExecUtil] - executed commandLine ‘c:/balabolka/balabolka_console.exe -t Внимание’
And with control error in openhab.log:
2016-02-10 13:52:16.691 [INFO ] [org.openhab.model.script.Exec ] - Results from balabolka:
No errors…
DiKey
(Dim)
February 10, 2016, 10:57am
5
I use OH 1.8.1
On PIPO X8 Windows 10
Logs written below. No error in the logs.
DiKey
(Dim)
February 12, 2016, 9:17am
6
I found problem:
balabolka_console.exe works fine with OH 1.8.1 on Windows 7
but it’s not working with OH 1.8.1 on Windows 10…