GSMSENDSMS(8) | System Manager's Manual | GSMSENDSMS(8) |
gsmsendsms - SMS message sender utility
gsmsendsms [ -b baudrate ] [ --baudrate baudrate ] [ -c concatenatedID ] [ --concatenate concatenatedID ] [ -C service centre address ] [ --sca service centre address ] [ -d device ] [ --device device ] [ -h ] [ --help ] [ -I init string ] [ --init init string ] [ -r ] [ --requeststat ] [ -t ] [ --test ] [ -v ] [ --version ] [ -X ] [ --xonxoff ] phonenumber [ text ]
gsmsendsms sends SMS short messages using an GSM mobile phone.
gsmsendsms attaches itself to the device given on the command line (usually an GSM modem) using the specified baudrate. If no device is given, the device /dev/mobilephone is used. If no baudrate is given, a default baud rate of 38400 is used.
gsmsendsms accepts a phone number (recipient address) and the short message text as parameters. The text may have a maximum length of 160 characters which is the maximum SMS message length. The GSM default alphabet is used for encoding. ASCII and Latin-1 characters that can not be encoded using the GSM default alphabet are converted to the GSM delta character (GSM code 16).
Error messages are printed to the standard error output. If the program terminates on error the error code 1 is returned.
The following two invocations of gsmsendsms each send the same SMS message to the number "1234":
gsmsendsms -d /dev/ttyS2 -b 19200 1234 "This is a test." echo "This is a test." | gsmsendsms -d /dev/ttyS2 -b 19200 1234
Peter Hofmann <software@pxh.de>
Report bugs to software@pxh.de. Include a complete, self-contained example that will allow the bug to be reproduced, and say which version of gsmsendsms you are using.
Copyright © 1999 Peter Hofmann
gsmsendsms is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
gsmsendsms is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with gsmsendsms; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
gsminfo(7), gsmpb(1), gsmctl(1), gsmsmsd(8), gsmsmsstore(1).
Sun Mar 31 18:20:52 UTC 2024 | gsmsendsms v1.10 |