#!/bin/bash file="$1"; read command < ${file}; case ${command} in create-test-run) echo '(:application . "[incr tsdb()] External Echo Client")' > ${file}; exit 0; ;; process-item) echo '(:readings . 0) (:comment . "External Echo Client")' > ${file}; exit 0; ;; complete-test-run) echo '' > ${file}; exit 0; ;; *) echo "echo: invalid option \`${1}'; exit."; exit 1; ;; esac