#!/bin/bash

SCMXX=/usr/bin/scmxx
MAILPROG=/usr/bin/mail
MAILPARAMS="-s 'SMS mail' $1"
LOGFILE=~/.scmxx-errors

if [ $# -eq 0 ]; then 
    echo "Syntax: $0 <<mailadress>>"; 
    exit 1;
fi
exec $SCMXX -gS --direct --pipe "$MAILPROG $MAILPARAMS" 2>$LOGFILE &
