Skip to content

Instantly share code, notes, and snippets.

@nikolaybotev
nikolaybotev / sendsms
Last active May 14, 2021 03:36 — forked from artizirk/sendsms.sh
Send SMS using AT commands over the TTY of a Cellular modem. Supports Unicode international characters and emojis.
#!/bin/sh -e
# Usage: sendsms +375555555 "some text i want to send"
TELFNUMB="$1"
SMSTEXT="$2"
MODEM="${3:-/dev/ttyUSB2}"
TIMEOUT="${4:-1}"
# Text encoding