#!/bin/bash for name in home root opt etc bram; do echo $name /scripts/mqtt.sh "$name" >> "/log/$name.log" 2>&1 done