diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-09-24 16:11:44 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-09-24 16:11:44 +0200 |
commit | 46cca23c06d0c209f64a69a058f5e86994598325 (patch) | |
tree | 6f84d1c0547e68029335ba6087d0537ce45a8c07 /localkannel-dispatch | |
parent | bf0ac75d0ed3f72fc69e7cdb22453f8d5a4f0dd8 (diff) |
Separate basecmd and realcmd in go/so; adjust go/so phones for budapest.
Diffstat (limited to 'localkannel-dispatch')
-rwxr-xr-x | localkannel-dispatch | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/localkannel-dispatch b/localkannel-dispatch index 8e3108b..33a3e0e 100755 --- a/localkannel-dispatch +++ b/localkannel-dispatch @@ -73,11 +73,11 @@ case "$SMS_REALM" in ;; hellobudapest) provider="clickatell" - gotestphones="+36307418279 +36307418320 +36705514801" # Jonas, Jacob, Vera - gophones="+36307418196 +36307417400" # Martin, Zita + gotestphones="" + gophones="" SMS_ERRFROM="+36307418279" # Jonas - SMS_ERRTO1="" - SMS_ERRTO2="" + SMS_ERRTO1="+36307418279" # Jonas + SMS_ERRTO2="+36703782127" # Emma mdpath="/home/www-hearth/public_webdata/hellobudapest/content/sms" export SMS_ERRFROM SMS_ERRTO1 SMS_ERRTO2 mdpath ;; @@ -212,20 +212,22 @@ Respond \"pong\" and echo back any addition input." go|gotest|so|sotest) case "$cmd" in go*) - realcmd="go" + basecmd="go" + realcmd="hello" ;; so*) - realcmd="so" + basecmd="so" + realcmd="szia" ;; esac if [ "help" = "$1" ]; then $sbindir/localsendsms "$to" "Usage: -/$realcmd PHONE [MSG...] -/${realcmd}test PHONE [MSG...] -/$realcmd help +/$basecmd PHONE [MSG...] +/${basecmd}test PHONE [MSG...] +/$basecmd help -Send \"[$cmd] MSG...\" to ${realcmd}test subscribers, -and start thread \"$realcmd\" on behalf of PHONE." +Start thread \"$realcmd\" on behalf of PHONE, +and (if included) send MSG to subscribers." exit 0 fi [ -n "$1" ] || exit1 "target phone number missing (try \"/$cmd help\" for usage)" |