#!/bin/bash if [ -z $1 ] || [ -z $2 ]; then echo "Usage: $0 SEND_ADDR REC_ADDR[,REC_ADDR...]" exit 1 fi /usr/local/sbin/pistar-activity-report -s "$1" -r "$2" | sendmail -oi -oem "$2"