#!/bin/bash
# $Id: m2sms,v 1.5 2016/12/03 13:36:44 fulford Exp $
# $Source: /src/admin/usr/local/etc/RCS/m2sms,v $
# $Revision: 1.5 $
# Author C W Fulford.
# Copyright 2016 (c) C W Fulford.
# Licensed for public use under the LGPL, .
# For assistance contact fulford@fulford.net 0793 572 8612
########################################################################
cmd=`basename $0`
ver=`echo "$Id: m2sms,v 1.5 2016/12/03 13:36:44 fulford Exp $"|awk '{print $3,$4,$5}'`
syntax="$cmd [-c <configfile>] [-d] [-h <hostid>] [-v]|-V"
while [ $# -gt 0 ] ;do
case $1 in
-c) config=$2;shift 2;;
-d) set -x;debug=0;shift;;
-v) verbose=:;shift;;
-V) echo "$cmd $Revision: 1.5 $ $Date: 2016/12/03 13:36:44 $"|
awk '{print $1,$3,$6}'
exit;;
*) subject="$subject $1";shift;;
esac
done
smsgw=00022220009@txtservice.co.uk
#txt=fulford@fulford.net
config=${config:-/usr/local/etc/${cmd}.cf}
#[ -r $config ]||{echo $cmd: Can't find $config;exit 1}
#eval `sed <$config -ne "/^$hostid:/,/^$/{/^[\t ]*[^#].*/p}"`
mailx -s "$subject" ${smsgw} <<- .
Calendar reminder.
.
######################################################################
# This program is free software: you can redistribute it and or #
# modify it under the terms of the Lesser GNU General Public License #
# as published by the Free Software Foundation, either version 3 of #
# the License, or (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# A copy of the Lesser GNU General Public License and the GNU #
# General Public License is available at #
# <http://www.gnu.org/licenses/>. #
######################################################################
Copyright
© 2003-2017
Clifford W Fulford.
Fulford Consulting Ltd.
Regd. Co. 4250037 in England & Wales.
Regd. office 162, Edward Rd. Nottingham NG2 5GF, England, UK.
Related web sites: City Linux | Flare Support | West Bridgford | Fulford Portal | Joan Mary Fulford (Nottingham Writer) | Fulford Gallery | Amharic Interpreter | Arabic Interpreter | Tigrinya Interpreter
The layout and associated style sheets for this page are taken from the World Wide Web Consortium and used here under the W3C software licence.