Keywords: Mode: All keywords (AND) |
Wed Apr 09, 2014 02:35
|
Anton: Hello, All! :)
The answer to my question I find in the related topic:
how to detect if usb modem is dead/unresposible?
Link to original docs:
Alarm handler
I use Perl for programming, and therefore use script liked to the following:
#!/usr/bin/env perl·
use strict;
use warnings;
use utf8;
open (LOG, ">>"."/var/log/test.log" )
» or die "Logging failed with error: $! for file ";
print LOG "SMSD $ARGV[0] $ARGV[1] $ARGV[2] $ARGV[3] $ARGV[4] $ARGV[5] $ARGV[6]";
Thank you for your attention!
|
Tue Apr 08, 2014 07:14
|
Anton: Ubuntu Linux precise1 12.04 LTS:
3.1.14-1:
Smsd installed from: package repository
USB modem Huawei e1550:
Interface: USB
Hello!
We have built some monitoring system server.
All everything allright, it's work.
But sometimes my modem hangs, and I have message in log liked this: modem is not registered.
It's not problem, I get event about this accross event handler of smstools.
Question!
If modem is disconnected from server (etc. because wrong config smsd.conf, where change USB port), how I can known about it? By event or something else?
Thanks in advance!
|