#!/bin/sh source mqttfuncs.sh mqtt Start # for ... # long loop mqtt "process now xyz `date`" # done mqtt "So, now it is the end"