GAMMU-SMSD-INJECT(1)
π gammu-smsd-inject β like, the manual page, but make it make sense π
okay so bestie, this is the GAMMU-SMSD-INJECT(1) page from the Gammu manual series β yes, the whole family, she's got siblings β and I'm gonna walk you through it like we're texting at 2am. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
gammu-smsd-inject β literally the little program that slips messages into the queue of the SMS daemon for Gammu. it's giving personal assistant for your modem, no cap π
β¨ SYNOPSIS β¨
gammu-smsd-inject [OPTION]... MESSAGETYPE RECIPIENT [MESSAGE_PARAMETER]...
that's the whole shape of it β options first, then what kind of message, then who it's for, then whatever extra bits that message type needs π
β¨ DESCRIPTION β¨
so this manual page documents, like, briefly, the gammu-smsd-inject command. key word briefly, we're not writing a novel here π
gammu-smsd-inject is the program that enqueues a message in Gammu SMS Daemon, which will be later sent by the daemon using the connected GSM modem. that's the whole job. put it in the queue, let the daemon do the actual sending. teamwork, fr fr π¦
whether this program actually works for you depends on the features available in the currently used SMSD service backend β but as of right now it's supported by all of them, so like, you're probably fine β¨
the program accepts the following options (and heads up bestie: long options might be not accepted on some platforms, so don't come for me if --help ghosts you on some weird box π):
-h,--helpβ shows help. classic. iconic. the "what am i doing here" button πΈ-v,--versionβ shows version information and compiled in features. little peek at what your build ate for breakfast π₯-c,--config=fileβ the configuration file to use. default is/etc/gammu-smsdrc. on Windows there is no default and the configuration file path has to be always specified. no default, no vibes, you must provide it π-l,--use-logβ use logging as configured in config file. yes ma'am, log away π-L,--no-use-logβ do not use logging as configured in config file. and this one is the default. silent main character energy π
for description of message types and their parameters, please check documentation for gammu savesms <#cmdoption-gammu-arg-savesms> β that's where the lore lives π
β¨ EXAMPLES β¨
to check it out, you need to have a configuration file for SMSD β see SMSD Configuration File <#gammu-smsdrc> if you want the details on it. no config, no sending, that's just how it is π§
π TEXT messages
inject a text message up to the standard 160 chars:
echo "All your base are belong to us" | gammu-smsd-inject TEXT 123456
or, the other way to say the exact same thing:
gammu-smsd-inject TEXT 123456 -text "All your base are belong to us"
inject an unicode text message:
gammu-smsd-inject TEXT 123456 -unicode -textutf8 "ZkouΕ‘ka sirΓ©n"
use -textutf8 for UTF-8 text supplied by applications or services, where the locale inherited by gammu-smsd-inject might not be configured. this is the one you want when the locale situation is a mess, bestie πΈ
π Long messages
inject a long text message (automatically split into linked SMS parts, she's organized like that):
gammu-smsd-inject TEXT 123456 < message.txt
or:
gammu-smsd-inject TEXT 123456 -text "Long message text..."
no length option is required. use -maxsms 1 to reject messages requiring multiple parts. to truncate input to a maximum length, use -len 400; -autolen 400 also automatically selects the SMS alphabet or Unicode. these limits apply to decoded text from both stdin and command-line arguments, regardless of option order β yes, order doesn't matter, she's flexible like that π
π¨ important, don't skip this one: stdin input exceeding 4,999 bytes (including a trailing newline) is rejected instead of injecting a truncated message β even with a length option. so it's not gonna silently cut your essay in half and embarrass you. it just refuses. honorable, honestly π
π¦ EMS messages
alternatively, use EMS:
gammu-smsd-inject EMS 123456 -text "All your base are belong to us"
inject some funky message with predefined sound and animation from 2 bitmaps:
gammu-smsd-inject EMS 123456 -text "Greetings" -defsound 1 -text "from Gammu" -tone10 axelf.txt -animation 2 file1.bmp file2.bmp
inject a protected message with ringtone:
gammu-smsd-inject EMS 123456 -protected 2 -variablebitmaplong ala.bmp -toneSElong axelf.txt -toneSE ring.txt
β USSD
inject a USSD query:
gammu-smsd-inject USSD '*101#'
β¨ Author β¨
Michal ΔihaΕ <michal@cihar.com> β the icon who wrote this π
β¨ Copyright β¨
2009-2015, Michal ΔihaΕ <michal@cihar.com> β periodt, protect the copyright line π«Ά
aaaand that's the page bestie, you now know everything gammu-smsd-inject knows π this was version 1.45.0, dated Sep 16, 2026, dropping out of the Gammu manual set β go inject something iconic, you got this πβ¨π
π¦ where this page comes from
- arch rolling: gammu 1.45.0-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms