![Black Box LS1016A User Manual Download Page 184](http://html.mh-extra.com/html/black-box/ls1016a/ls1016a_user-manual_2763435184.webp)
Generating Alarms
184
BLACK BOX
®
Advanced Console Server
Sendsms
The sendsms is the Linux command line client for the SMSLink project. It accepts command
line parameters that define the message to be sent, and transmits them to the SMS server pro-
cess running on the designated server. The sendsms was developed specifically for easy call-
ing from shell scripts or similar situations.
Synopsis:
sendsms [-r] [-g] [-v] -d dest (-m message or -f msgfile)
[-u user] [-p port] server
where:
-r
Reporting. Additional info will be included in the message
printed on stderr (namely, the device name used by the server to
send the SMS out, and the message ID attributed to the SMS by
the module's SIM card). If any of these items is missing or can't
be parsed, a value of “??” will be returned.
-g
Turns debugging on. Will output the entire dialog with the
server on stderr (and more).
-h
Displays a short help message and exits.
-v
Displays version information and exits.
-d dest
Required. The GSM network address (i.e. phone number) of the
mobile phone the message is to be sent to. Supported format is:
[int. prefix - country code] area code - phone number. The
international prefix can be either “+” or “00” (or any other value
supported by the GSM network provider the server is subscribed
to). Some separation characters can be used to beautify the
number, but they are purely cosmetic and will be stripped by the
server. Those characters are [./- ]. The pause character (',') is not
supported. Regarding the international country code, don't
forget that its necessity is to be considered respective to the SMS
gateway location (the host this client program is connecting to),
not the location where the client is run from.