I worked a solution for a TEXT pageing program to send TEXT messages to a SPRINTPCS service.
Thought I would share it to see if there are others.
Lets work to provide others. Want to contibute?Code:#!/bin/sh # pager.sh # Al Smith 08.01.2004 # SPRINT SMS paging program # Requires wget # Required arguments are Company PagerNumber Message FILE=pager.html clear if [ -z $1 ] || [ -z $2 ] || [ -z $3 ] then echo "usage: pager.sh CO PIN your message." echo " ex: pager.sh A ########## this is my message." exit fi CO=$1 PAGER=$2 MSG=`echo $@ |cut -d" " -f3-` #echo $MSG # Set up the URL for the differnt providers SPRINT="http://messaging.sprintpcs.com/textmessaging/composeconfirm?phoneNumber=$PAGER&message=$MSG" # Write a pager.out file and a $FILE for logging and confirmations wget -o pager.out -O $FILE "$SPRINT" # Here we check our Pager Company (mostly for future use) case $CO in SPRINT) # search for conformation OK="Message Sent" grep "$OK" $FILE >/dev/null RC=$? case $RC in 0 ) # Success echo Success ;; *) # Failure echo Failed ;; esac esac rm pager.out pager.html # # End #



LinkBack URL
About LinkBacks
Reply With Quote







