Debian Codegraph @

doc/gsmsmsstore.man

raw
1 .\" -*- eval: (nroff-mode) -*-
2 .de TQ
3 .br
4 .ns
5 .TP \\$1
6 ..
7 .\" Like TP, but if specified indent is more than half
8 .\" the current line-length - indent, use the default indent.
9 .de Tp
10 .ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
11 .el .TP "\\$1"
12 ..
13 .TH GSMSMSSTORE 8 "##DATE##" "gsmsmsstore v##VERSION##"
14 .SH NAME
15 gsmsmsstore \- SMS store manipulation program
16 .SH SYNOPSIS
17 .B gsmsmsstore
18 [ \fB\-a\fP ]
19 [ \fB\-\-add\fP ]
20 [ \fB\-b\fP \fIbaudrate\fP ]
21 [ \fB\-\-baudrate\fP \fIbaudrate\fP ]
22 [ \fB\-c\fP ]
23 [ \fB\-\-copy\fP ]
24 [ \fB\-C\fP \fIservice centre address\fP ]
25 [ \fB\-\-sca\fP \fIservice centre address\fP ]
26 [ \fB\-d\fP \fIdestination device or file\fP ]
27 [ \fB\-\-destination\fP \fIdestination device or file\fP ]
28 [ \fB\-h\fP ]
29 [ \fB\-\-help\fP ]
30 [ \fB\-I\fP \fIinit string\fP ]
31 [ \fB\-\-init\fP \fIinit string\fP ]
32 [ \fB\-k\fP ]
33 [ \fB\-\-backup\fP ]
34 [ \fB\-l\fP ]
35 [ \fB\-\-list\fP ]
36 [ \fB\-s\fP \fIsource device or file\fP ]
37 [ \fB\-\-source\fP \fIsource device or file\fP ]
38 [ \fB\-t\fP \fISMS store name\fP ]
39 [ \fB\-\-store\fP \fISMS store name\fP ]
40 [ \fB\-v\fP ]
41 [ \fB\-\-version\fP ]
42 [ \fB\-V\fP ]
43 [ \fB\-\-verbose\fP ]
44 [ \fB\-x\fP ]
45 [ \fB\-\-delete\fP ]
46 [ \fB\-X\fP ]
47 [ \fB\-\-xonxoff\fP ]
48 { \fIindices\fP }
49 [ \fIphonenumber\fP \fItext\fP ]
50 .PP
51 .SH DESCRIPTION
52 \fIgsmsmsstore\fP can store or retrieve SMS messages entries residing
53 in a GSM mobile phone's SMS store to or from a file, add SMS messages
54 to a store, or list the store's contents. Additionally, it is possible
55 to add SMS submit messages to a store.
56 .PP
57 \fIgsmsmsstore\fP reads entries from the source which can be a mobile
58 phone (if a serial device file is given) or a file (if a file name is
59 given). The source is never modified. \fIgsmsmsstore\fP writes SMS
60 messages to a destination file or device in the case of \fB\-\-copy\fP,
61 \fB\-\-backup\fP, and \fB\-\-add\fP.
62 .PP
63 The \fB\-\-list\fP option does not change any file but just lists the
64 contents to standard output.
65 .PP
66 The \fB\-\-backup\fP and \fB\-\-copy\fP options require both source and
67 destination files or devices. The \fB\-\-list\fP option requires a
68 source. The \fB\-\-add\fP and \fB\-\-delete\fP options require a
69 destination file or device.
70 .PP
71 If "\-" is given as the parameter for the \fB\-\-source\fP or
72 \fB\-\-destination\fP options, the SMS store is read from standard input
73 and/or written to standard output, respectively.
74 .PP
75 SMS message files are not human-readable.
76 .PP
77 Error messages are printed to the standard error output. If the program
78 terminates on error the error code 1 is returned.
79 .PP
80 .SH OPTIONS
81 .TP
82 \fB\-a\fP, \fB\-\-add\fP
83 Adds an SMS submit message with recipient address \fIphonenumber\fP and
84 text \fItext\fP to the destination.
85 .TP
86 \fB\-b\fP \fIbaudrate\fP, \fB\-\-baudrate\fP \fIbaudrate\fP
87 The baud rate to use. The default baudrate is 38400.
88 .TP
89 \fB\-c\fP, \fB\-\-copy\fP
90 This causes the contents of the source to be copied to the
91 destination. After this operation the destination has exactly the same
92 contents as the source. If \fIindices\fP are given on the command
93 line only those SMS messages denoted by the indices are copied to the
94 destination.
95 .TP
96 \fB\-C\fP \fIservice centre address\fP, \fB\-\-sca\fP \fIservice centre address\fP
97 Sets the service centre address to use for all SUBMIT SMSs (may not
98 work with some phones).
99 .TP
100 \fB\-d\fP \fIdestination\fP, \fB\-\-destination\fP \fIdestination\fP
101 The destination device or file.
102 .TP
103 \fB\-h\fP, \fB\-\-help\fP
104 Prints an option summary.
105 .TP
106 \fB\-I\fP \fIinit string\fP, \fB\-\-init\fP \fIinit string\fP
107 Initialization string to send to the TA (default: "E0"). Note that the
108 sequence "ATZ" is sent first.
109 .TP
110 \fB\-k\fP, \fB\-\-backup\fP
111 This causes those entries to be added from the source to the
112 destination that are not already present in the destination. If
113 \fIindices\fP are given on the command line only those SMS messages
114 denoted by the indices are backed up (ie. added) to the destination.
115 .TP
116 \fB\-l\fP, \fB\-\-list\fP
117 Prints out the entire contents of the source in human-readable form.
118 .TP
119 \fB\-s\fP \fIsource\fP, \fB\-\-source\fP \fIsource\fP
120 The source device or file.
121 .TP
122 \fB\-t\fP \fISMS store name\fP, \fB\-\-store\fP \fISMS store name\fP
123 The name of the SMS store to read from or write to. This information is
124 only used for device sources and destinations. A commonly available message
125 store is "SM" (SIM card).
126 .TP
127 \fB\-v\fP, \fB\-\-version\fP
128 Prints the program version.
129 .TP
130 \fB\-V\fP, \fB\-\-verbose\fP
131 Prints out a detailed progress report.
132 .TP
133 \fB\-x\fP, \fB\-\-delete\fP
134 Delete the SMS messages as denoted by the \fIindices\fP from the destination.
135 .TP
136 \fB\-X\fP, \fB\-\-xonxoff\fP
137 Uses software handshaking (XON/XOFF) for accessing the device.
138 .PP
139 .SH EXAMPLES
140 The following command lists all entries in the mobile phone connected
141 to \fI/dev/mobilephone\fP to the standard output:
142 .PP
143 .nf
144 gsmsmsstore \-b 19200 \-s /dev/mobilephone \-t SM \-l
145 .fi
146 .PP
147 The following adds entries 4, 7, and 10 from the device
148 \fI/dev/mobilephone\fP to the file \fIsmsstore\fP:
149 .PP
150 .nf
151 gsmsmsstore \-s /dev/mobilephone \-d /home/fred/smsstore
152 \-t SM \-b 4 7 10
153 .fi
154 .PP
155 .SH AUTHOR
156 Peter Hofmann <[email protected]>
157 .PP
158 .SH BUGS
159 Report bugs to [email protected]. Include a complete, self-contained
160 example that will allow the bug to be reproduced, and say which
161 version of \fIgsmsmsstore\fP you are using.
162 .PP
163 .SH COPYRIGHT
164 Copyright \(co 1999 Peter Hofmann
165 .LP
166 \fIgsmsmsstore\fP is free software; you can redistribute it and/or
167 modify it under the terms of the GNU Library General Public License as
168 published by the Free Software Foundation; either version 2, or (at
169 your option) any later version.
170 .LP
171 \fIgsmsmsstore\fP is distributed in the hope that it will be useful,
172 but WITHOUT ANY WARRANTY; without even the implied warranty of
173 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
174 Library General Public License for more details.
175 .LP
176 You should have received a copy of the GNU Library General Public License
177 along with \fIgsmsmsstore\fP; see the file COPYING. If not, write to
178 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
179 .PP
180 .SH "SEE ALSO"
181 .BR gsminfo(7),
182 .BR gsmctl(1),
183 .BR gsmpb(1),
184 .BR gsmsendsms(1),
185 .BR gsmsmsd(8).