diff options
author | Jonas Smedegaard <dr@jones.dk> | 2009-08-09 00:42:52 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2009-08-09 00:42:52 +0200 |
commit | 698270e9aa369b87f70d162d04bde3be69ad88f0 (patch) | |
tree | afda6c60311b77668432a9618b59239de71fea9d /localmarkdown2sms | |
parent | da610563f2230fc3f2d69fd7d88a4b8f33a13acf (diff) |
Add more debug at sendsms execution.
Diffstat (limited to 'localmarkdown2sms')
-rwxr-xr-x | localmarkdown2sms | 4 |
1 files changed, 3 insertions, 1 deletions
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"; } } |