#!/bin/bash
 
USER=`echo ${1} | awk '{ print $1 }'`
PASS=`echo ${1} | awk '{ print $2 }'`
body=${2}
 
cat <<EOF | freesms -u ${USER} -p ${PASS} -
${body}
EOF