#!/bin/sh # call me with broadcaster $bcat-ip hello world LOGFILE="./hello.log" ( echo -n "Someone called 'hello " cat echo "'!" ) >> "$LOGFILE"