Added option not to use configured logging in SMSD inject and monitor (bug #1539).
[gammu.git] / docs / manual / smsd / inject.rst
blob5e54c5e0230e732e452904733b665767467605ea
1 .. _gammu-smsd-inject:
3 gammu-smsd-inject
4 =================
6 .. program:: gammu-smsd-inject
8 Synopsis
9 --------
11 .. code-block:: text
13     gammu-smsd-inject [OPTION]... MESSAGETYPE RECIPIENT [MESSAGE_PARAMETER]...
15 Description
16 -----------
18 This manual page documents briefly the :program:`gammu-smsd-inject` command.
20 :program:`gammu-smsd-inject` is a program that enqueues message in Gammu SMS
21 Daemon, which will be later sent by the daemon using connected GSM modem.
23 Support for this program depends on features available in currently used SMSD
24 service backend, however currently it is supported by all of them.
26 Program accepts following options (please note that long options might be not
27 accepted on some platforms):
29 .. option:: -h, --help
31     Shows help.
33 .. option:: -v, --version
35     Shows version information and compiled in features.
37 .. option:: -c, --config=file
39     Configuration file to use, default is /etc/gammu-smsdrc, on Windows there
40     is no default and configuration file path has to be always specified.
42 .. option:: -l, --use-log
44     Use logging as configured in config file.
46 .. option:: -L, --no-use-log
48     Do not use logging as configured in config file (default).
50 For description of message types and their parameters, please check documentation
51 for :option:`gammu savesms`.
53 Examples
54 --------
56 To check it out, you need to have configuration file for SMSD, see
57 :ref:`gammu-smsdrc` for more details about it.
59 Inject text message up to standard 160 chars:
61 .. code-block:: sh
63     echo "All your base are belong to us" | gammu-smsd-inject TEXT 123456
67 .. code-block:: sh
69     gammu-smsd-inject TEXT 123456 -text "All your base are belong to us"
71 Inject long text message:
73 .. code-block:: sh
75     echo "All your base are belong to us" | gammu-smsd-inject TEXT 123456 -len 400
79 .. code-block:: sh
81     gammu-smsd-inject TEXT 123456 -len 400 -text "All your base are belong to us"
85 .. code-block:: sh
87     gammu-smsd-inject EMS 123456 -text "All your base are belong to us"
89 Inject some funky message with predefined sound and animation from 2 bitmaps:
91 .. code-block:: sh
93     gammu-smsd-inject EMS 123456 -text "Greetings" -defsound 1 -text "from Gammu" -tone10 axelf.txt -animation 2 file1.bmp file2.bmp
95 Inject protected message with ringtone:
97 .. code-block:: sh
99     gammu-smsd-inject EMS 123456 -protected 2 -variablebitmaplong ala.bmp -toneSElong axelf.txt -toneSE ring.txt