I’ve added your suggestions to the configuration files. For the “rubbish” thing I got this:
2019-09-09 13:59:35.840 [me.event.ThingUpdatedEvent] - Thing ‘exec:command:execTestThing’ has been updated.
2019-09-09 13:59:35.850 [hingStatusInfoChangedEvent] - ‘exec:command:testecho’ changed from UNINITIALIZED to INITIALIZING
2019-09-09 13:59:35.856 [hingStatusInfoChangedEvent] - ‘exec:command:testecho’ changed from INITIALIZING to ONLINE
and
==> /var/log/openhab2/openhab.log <==
2019-09-09 13:59:35.790 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘exec-test.things’
2019-09-09 13:59:35.855 [ERROR] [hab.binding.exec.handler.ExecHandler] - An exception occurred while executing ‘rubbish’ : ‘Cannot run program “rubbish”: error=2, Datei oder Verzeichnis nicht gefunden’
Which means file or directory not found.
Updating the items and rules didn’t result in error messages.
Now when the cron job is triggered the output shows this (no change in exec argument, script doesn’t update log file):
2019-09-09 14:07:00.048 [ome.event.ItemCommandEvent] - Item ‘execTestItem’ received command 299,518
2019-09-09 14:07:00.054 [nt.ItemStatePredictedEvent] - execTestItem predicted to become 299,518==> /var/log/openhab2/openhab.log <==
2019-09-09 14:07:00.060 [WARN ] [rthome.model.script.actions.BusEvent] - Cannot convert ‘rhubarb’ to a command type which item ‘testSw’ accepts: [OnOffType, RefreshType].
2019-09-09 14:07:00.066 [WARN ] [rthome.model.script.rule_exec_test 1] - update Logfile: 299,518