GSMSENDSMS(8)
π gsmsendsms β SMS message sender utility
okay bestie, welcome to the gsmsendsms(8) page from the System Manager's Manual. This is the iconic little utility that sends SMS short messages through a GSM mobile phone, and it's giving main character energy. π
π NAME π
gsmsendsms β SMS message sender utility
β¨ SYNOPSIS β¨
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 ]
πΈ DESCRIPTION πΈ
okay so, gsmsendsms sends SMS short messages using an GSM mobile phone. Slay.
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.
π¦ OPTIONS π¦
-bbaudrate,--baudratebaudrate β the baud rate to use.-cconcatenatedID,--concatenateconcatenatedID β if an ID is given, large SMSs are split into several, concatenated SMSs. All SMSs have the same ID and are numbered consecutively so that the receiving phone can assemble them in the correct order. IDs must be in the range0..255. Not all receiving phones will support concatenated SMSs (and display them as separate SMSs), since all the numbering and ID information is carried in the user data header element at the beginning of the SMS user data. This information may show up as garbage in such phones.-Cservice centre address,--scaservice centre address β sets the service centre address to use for all SUBMIT SMSs (may not work with some phones).-ddevice,--devicedevice β the device to which the GSM modem is connected. The default is/dev/mobilephone.-h,--helpβ prints an option summary.-Iinit string,--initinit string β initialization string to send to the TA (default:"E0"). Note that the sequence"ATZ"is sent first.-r,--requeststatβ request status reports for sent SMS.-t,--testβ if this option is given, the text is converted to the GSM default alphabet and back to Latin-1. This option can be used to find out how ASCII or Latin-1 texts are converted to the GSM default alphabet. Characters that can not be converted to the GSM default alphabet are reported as ASCII code172(Latin-1 boolean"not") after this double conversion. No SMS messages are sent, a connection to a mobile phone is not established.-v,--versionβ prints the program version.-X,--xonxoffβ uses software handshaking (XON/XOFF) for accessing the device.
π EXAMPLES π
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
π FILES π
/dev/mobilephoneβ default mobile phone device.
π AUTHOR π
Peter Hofmann <software@pxh.de>
π BUGS π
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 π
Legal tea time, bestie β here's the exact copyright and license situation:
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.
π SEE ALSO π
π and that's the GSMSENDSMS(8) vibe: gsmsendsms v1.10, dated Sat Oct 24 19:18:56 UTC 2026. mwah π
π¦ where this page comes from
- nixos 26.05: gsmlib-unstable 2017-10-06
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms