gammu

Command-line utility to control mobile phones via AT commands

brewmacoslinux
Try with needOr install directly
Source

About

Command-line utility to control a phone

Commands

gammugammu-smsd

Examples

Get phone information and battery status$ gammu --config /dev/ttyUSB0 getinfo all
Send an SMS message to a phone number$ gammu --config /dev/ttyUSB0 sendsms TEXT +1234567890 'Hello World'
List all contacts in phone memory$ gammu --config /dev/ttyUSB0 getallcontacts