I need to issue multiple commands to karaf from bash. I have this shell script which works just fine, but I think I should be able to do this without having to login to the console for each command:
openhab-cli console -p habopen bundle:stop org.openhab.io.homekit sleep 1s openhab-cli console -p habopen bundle:start org.openhab.io.homekit
I’ve tried this:
openhab-cli console -p habopen bundle:stop org.openhab.io.homekit && bundle:start org.openhab.io.homekit
But it seems that after the first command is issued, the console connection is closed, so the second command is passed to bash, and of course, fails.
Any ideas appreciated