printf >&2 "$method"
exec 3>&2 2>&1
set -x
- ./"via-$method" $data "$msg" 2>&1
+ ./"via-$method" "$msg" $data 2>&1
rc=$?
set +x
exec 2>&3 3>&-
-#!/bin/sh
-rcpt="$1"
-msg="$2"
+#!/bin/bash
+msg="$1"; shift
+rcpts="$*";
ssh -vt ijackson@tunnel.chiark.greenend.org.uk \
/usr/lib/sendmail -oem -odb -oi -t <<END
-To: $rcpt
+To: ${rcpts// /, }
Subject: $msg
+User-Agent: post-pizza notification robot
$msg
#!/usr/bin/perl -w
use strict;
die unless @ARGV==4;
-our ($server,$port,$channel,$msg) = @ARGV;
+our ($msg,$server,$port,$channel) = @ARGV;
chdir "../ircbot.git" or die $!;
#!/bin/sh
set -e
-rcpt="$1"
-msg="$2"
+msg="$1"
+rcpt="$2"
gammu sendsms TEXT "$rcpt" -text "$msg"