TWIPING(1)
πΈ NAME πΈ
okay bestie, welcome to twiping(1) π β the manual page for twiping, which sends an SMS ping via the Twilio REST API. that's the whole vibe. it pings, it waits, it slays. β¨
π¦ SYNOPSIS π¦
twiping [-c config-file] [-C curl-flag] [-F from-number] [-f format]
[-m reply-pattern] [-t testcode] [-u account-sid]
[-p auth-token] [-P] [-w timeout] dest-number
π DESCRIPTION π
so here's the tea β β twiping tries to fire off one single outgoing SMS message containing a unique test code to the number you specified. then it justβ¦ waits. patiently. like a bestie holding your iced coffee π₯€. it's waiting for an SMS reply that contains that same test code, and it does all of this through the Twilio REST API. periodt. π
by default, that test message looks like TESTxxxxxxxx β where the x characters get replaced by random hex digits. and here's the cute part: only the hex digits (the xxxxxxxx part) are matched in the reply. π that behavior is fully changeable with the -t and -m flags, iykyk.
phone numbers gotta be in E.164 format β that means a leading plus sign + followed by the country code πΊοΈ β or as a 5 or 6 digit short code. no cap, those are the only two options.
β¨ OPTIONS β¨
-cβ specify the configuration file. this file is literally just a shell script that, when sourced, must define theACCOUNT_SIDandAUTH_TOKENshell variables holding the corresponding Twilio credentials. π it must also define theFROM_NUMBERshell variable if the-Fflag isn't being used to specify the sending SMS phone number. and if you don't pass-cat all?/etc/twilio.confis assumed, bestie. that's the default. π-Cβ pass flag tocurl(1). π-fβ specify an alternateprintf(1)format string; the default isTEST%s. the format string should contain one instance of%s, which gets replaced by the test code. π-Fβ specify the sending SMS phone number. this flag is required if the configuration file doesn't define a defaultFROM_NUMBER. π-pβ specify authentication token, overridingAUTH_TOKENfrom the configuration file, if any. π-mβ match responses using the specified extended regular expression. any occurrences of@TESTCODE@within reply-pattern get replaced with the test code. π§-Pβ read authentication token from the terminal. β¨οΈ-tβ don't generate or send a test code. instead, assume the specified testcode has just been sent and expect a reply normally. π-uβ specify Account SID, overridingACCOUNT_SIDfrom the configuration file, if any. πͺͺ-wβ wait up to timeout seconds for a reply. the default timeout is 30 seconds. β³
π EXIT STATUS π
0β exits zero when everything's normal, slay π1β an error occurs π2β no response is received within the specified timeout π
also important: errors returned from the Twilio REST API are reported to standard error. so like, check stderr before you spiral, okay? π«Ά
π BUGS π
the Twilio API is unable to communicate with other short codes β whether they're managed by Twilio or not. that's just the situation, ngl. π
π₯ SEE ALSO π₯
curl(1), smslen(1), twimsg(1), twils(1), twirm(1), twilog(1).
π AUTHOR π
Archie L. Cobbs <archie.cobbs@gmail.com> β the icon who made this happen. π«‘
and that's the whole page, bestie!! π this edition came from Debian, dated Oct 2, 2019, and it's twiping(1) from the General Commands Manual β go forth and ping responsibly ππ
π¦ where this page comes from
- opensuse-leap 16.0: twilio-utils 1.2.2-bp160.1.12 Β· Apache-2.0
- opensuse-leap 16.0: twilio-utils 1.2.2-bp160.1.12 Β· Apache-2.0
- opensuse-leap 16.0: twilio-utils 1.2.2-bp160.1.12 Β· Apache-2.0
- opensuse-leap 16.0: twilio-utils 1.2.2-bp160.1.12 Β· Apache-2.0
- Copyright 2013 Archie L. Cobbs <archie.cobbs@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms