True, probably because of the syntax.
Which brings us back to post #1.
This is what I tried - and I do not see a chance to come to an end without an expert:
When you run from executeCommandLine(), it is not a console, not in a shell. The usual workaround is to put your instruction in a file and run that.
You don’t seem to have tried breaking up your command line though - visible spaces inside your arguments are usually a bad sign executeCommandLine("x", "y", "z")
I did, But I inserted two lines right after publishing the above post which you probably haven’t noticed.
Yeah, looks like I need to take the “fool” approach. Which is a pitty. I wanted to create a widget and rule which shows recent warnings, errors and fatal messages, nicely presented in a tabbed popup and wanted to add it in the market place. creating a shell script could be an obstacle for new users.
And from personal perspective I hate to give up and miss a chance to learn a bit more
Wow. I need to stop writing JS rules. An hour ago when I had this Out of Memory error again, stoping OH and restarting Pi led to Pi not coming up again. So I had to switch off my Pi.
After that the script works without problems