GSMSENDSMS(8)
π GSMSENDSMS β the SMS sender utility, bestie edition β¨
okay so this is a section 8 man page (system manager's manual, iykyk) for gsmsendsms, and honestly? she's iconic. she sends SMS messages through a GSM mobile phone like it's nothing. let's get into it π«Ά
πΈ NAME πΈ
gsmsendsms β the SMS message sender utility. that's it, that's her whole job, and she does it flawlessly π
β¨ 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 a GSM mobile phone. main character behavior, fr fr π
she attaches herself to the device you give her on the command line (usually a GSM modem) using the baudrate you specified. no device? she defaults to /dev/mobilephone, no cap. no baudrate? default is 38400 and she's not sorry about it. β¨
then she takes a phone number (the recipient address) and the short message text as parameters. the text can be a maximum of 160 characters β that's the max SMS message length, bestie, don't push it π. the GSM default alphabet is what's used for encoding. and listen: ASCII and Latin-1 characters that can't be encoded with the GSM default alphabet get converted to the GSM delta character (GSM code 16). that's just how she rolls π
error messages go to the standard error output. and if the program terminates on error, the error code 1 is returned. periodt. π
π OPTIONS π
so many little knobs and dials, she's so versatile π§
-b baudrate,--baudrate baudrateβ the baud rate to use. that's the vibe check for your connection speed β¨-c concatenatedID,--concatenate concatenatedIDβ if you give an ID, large SMSs get split into several, concatenated SMSs. all of them share the same ID and are numbered consecutively so the receiving phone can assemble them in the correct order. IDs must be in the range0..255. β οΈ not all receiving phones support concatenated SMSs (some will just show them as separate SMSs), because all the numbering and ID info is carried in the user data header element at the beginning of the SMS user data. and on those phones, that info may show up as garbage. you've been warned π«-C service centre address,--sca service centre addressβ sets the service centre address to use for all SUBMIT SMSs (may not work with some phones π)-d device,--device deviceβ the device to which the GSM modem is connected. the default is/dev/mobilephoneπ-h,--helpβ prints an option summary. your lil cheat sheet πΈ-I init string,--init init stringβ initialization string to send to the TA (default:"E0"). note that the sequence"ATZ"is sent first. just so you know π-r,--requeststatβ request status reports for sent SMS. she's keeping receipts π-t,--testβ if you give this option, the text is converted to the GSM default alphabet and back to Latin-1. super useful for finding out how ASCII or Latin-1 texts get converted to the GSM default alphabet! characters that can't be converted to the GSM default alphabet are reported asASCII code 172(Latin-1 boolean "not") after this double conversion. and nope, no SMS messages are sent and no connection to a mobile phone is established. it's purely a vibe check, nothing more π-v,--versionβ prints the program version β-X,--xonxoffβ uses software handshaking (XON/XOFF) for accessing the device π₯
π EXAMPLES π
these two invocations of gsmsendsms each send the same SMS message to the number "1234". look at her being flexible π
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. the one she goes to when you don't tell her otherwise π₯Ί
π AUTHOR π
Peter Hofmann <software@pxh.de> β the legend, the icon, the moment π
π BUGS π
report bugs to software@pxh.de. include a complete, self-contained example that will let the bug be reproduced, and say which version of gsmsendsms you're using. help her help you, bestie π
π COPYRIGHT π
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. (this part is serious, no jokes, read it fr fr π€)
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 π
gsminfo(7), gsmpb(1), gsmctl(1), gsmsmsd(8), gsmsmsstore(1) β go read them too, she's not the only queen in this family π
and that's the whole page, bestie!! π«Ά this was gsmsendsms v1.10, dated Sun Mar 31 18:20:52 UTC 2024. go send some texts, slay, and remember: 160 characters max, no cap πβ¨π
π¦ where this page comes from
- ubuntu noble: gsm-utils 1.10+20120414.gita5e5ae9a-3build1
- ubuntu questing: gsm-utils 1.10+20120414.gita5e5ae9a-3build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms