man putsms (Commandes) - sends SMS using a GSM compatible modem

NAME

putsms - sends SMS using a GSM compatible modem

DESCRIPTION

putsms sends an SMS through a GSM 07.05 compatible modem. Usage:

putsms [options] destination ["message"]

OPTIONS

-ax
set alarm handler to x (default none)
-Ax
set alarm level to x (default 4)
-bx
set baudrate to x (default 19200)
-c
use character set conversion
-dx
set modem device to x (default /dev/ttyS0)
-Dx
delay sending characters by x milliseconds (default 1)
-ex
wait x seconds before retry (default 10)
-fx
message file x (ascii)
-Fx
message file x (binary, only in pdu mode)
-gx
message file x (UCS2, only in pdu mode)
-h
this help
-H
disable hardware handshake RTS/CTS
-ix
modem init string x
-I
send as a flash SMS (class 0)
-lx
use logfile x (filename or handle) (default syslog)
-Lx
use loglevel x (default 9)
-mx
set the PDU mode to x (default new) x can be old, new, ascii or digicom
-nx
set modem name to x
-px
set pin to x (only needed if modem not initialized)
-q
quick, no modem initialisation
-r
request status report SMS (not in ascii mode)
-Rx
report message ID in file x
-sx
set SMSC Number to x
-u
no user data header (UDH bit). Only used with -F.
-V
print version info and copyright

Return codes:

0
success
1
cannot open device or file
2
PIN is wrong
3
problem with modem initialisation
4
SMS could not be sent
5
error in arguments

The message file can contain a header but this is not used.

Usage:

putsms [options] destination ["message"]
-ax
set alarm handler to x (default none)
-Ax
set alarm level to x (default 4)
-bx
set baudrate to x (default 19200)
-c
use character set conversion
-dx
set modem device to x (default /dev/ttyS0)
-Dx
delay sending characters by x milliseconds (default 1)
-ex
wait x seconds before retry (default 10)
-fx
message file x (ascii)
-Fx
message file x (binary, only in pdu mode)
-gx
message file x (UCS2, only in pdu mode)
-h
this help
-H
disable hardware handshake RTS/CTS
-ix
modem init string x
-I
send as a flash SMS (class 0)
-lx
use logfile x (filename or handle) (default syslog)
-Lx
use loglevel x (default 9)
-mx
set the PDU mode to x (default new) x can be old, new, ascii or digicom
-nx
set modem name to x
-px
set pin to x (only needed if modem not initialized)
-q
quick, no modem initialisation
-r
request status report SMS (not in ascii mode)
-Rx
report message ID in file x
-sx
set SMSC Number to x
-u
no user data header (UDH bit). Only used with -F.
-V
print version info and copyright

Return codes:

0
success
1
cannot open device or file
2
PIN is wrong
3
problem with modem initialisation
4
SMS could not be sent
5
error in arguments

The message file can contain a header but this is not used.