From 698270e9aa369b87f70d162d04bde3be69ad88f0 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 9 Aug 2009 00:42:52 +0200 Subject: Add more debug at sendsms execution. --- localmarkdown2sms | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'localmarkdown2sms') diff --git a/localmarkdown2sms b/localmarkdown2sms index 163e732..ac8e699 100755 --- a/localmarkdown2sms +++ b/localmarkdown2sms @@ -130,10 +130,12 @@ sub sendmsg { my ($phone, $desc, $msg) = @_; unless ($DUMMY) { + print STDERR "Exec'ing \"...sendsms $phone ...\"\n" if ($DEBUG); + system {'/usr/share/kannel/contrib/sendsms' } $phone, $msg; system {'/usr/share/kannel/contrib/sendsms' } $phone, $msg; print STDERR "Done $desc\n" if ($DEBUG); } else { - print STDERR "\n --> $desc\n"; + print STDERR "\n --> $phone: $desc\n"; print STDERR $msg . "\n"; } } -- cgit v1.2.3