/[debian]/bti/branches/upstream/current/bti.1
ViewVC logotype

Contents of /bti/branches/upstream/current/bti.1

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1739 - (show annotations)
Thu May 28 15:19:44 2009 UTC (11 years, 9 months ago) by gregoa
File size: 10724 byte(s)
[svn-upgrade] Integrating new upstream version, bti (023)
1 .\" Title: bti
2 .\" Author: [see the "AUTHOR" section]
3 .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
4 .\" Date: May 2008
5 .\" Manual: bti
6 .\" Source: bti
7 .\" Language: English
8 .\"
9 .TH "BTI" "1" "May 2008" "bti" "bti"
10 .\" -----------------------------------------------------------------
11 .\" * (re)Define some macros
12 .\" -----------------------------------------------------------------
13 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14 .\" toupper - uppercase a string (locale-aware)
15 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 .de toupper
17 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
18 \\$*
19 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
20 ..
21 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22 .\" SH-xref - format a cross-reference to an SH section
23 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24 .de SH-xref
25 .ie n \{\
26 .\}
27 .toupper \\$*
28 .el \{\
29 \\$*
30 .\}
31 ..
32 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33 .\" SH - level-one heading that works better for non-TTY output
34 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35 .de1 SH
36 .\" put an extra blank line of space above the head in non-TTY output
37 .if t \{\
38 .sp 1
39 .\}
40 .sp \\n[PD]u
41 .nr an-level 1
42 .set-an-margin
43 .nr an-prevailing-indent \\n[IN]
44 .fi
45 .in \\n[an-margin]u
46 .ti 0
47 .HTML-TAG ".NH \\n[an-level]"
48 .it 1 an-trap
49 .nr an-no-space-flag 1
50 .nr an-break-flag 1
51 \." make the size of the head bigger
52 .ps +3
53 .ft B
54 .ne (2v + 1u)
55 .ie n \{\
56 .\" if n (TTY output), use uppercase
57 .toupper \\$*
58 .\}
59 .el \{\
60 .nr an-break-flag 0
61 .\" if not n (not TTY), use normal case (not uppercase)
62 \\$1
63 .in \\n[an-margin]u
64 .ti 0
65 .\" if not n (not TTY), put a border/line under subheading
66 .sp -.6
67 \l'\n(.lu'
68 .\}
69 ..
70 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71 .\" SS - level-two heading that works better for non-TTY output
72 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73 .de1 SS
74 .sp \\n[PD]u
75 .nr an-level 1
76 .set-an-margin
77 .nr an-prevailing-indent \\n[IN]
78 .fi
79 .in \\n[IN]u
80 .ti \\n[SN]u
81 .it 1 an-trap
82 .nr an-no-space-flag 1
83 .nr an-break-flag 1
84 .ps \\n[PS-SS]u
85 \." make the size of the head bigger
86 .ps +2
87 .ft B
88 .ne (2v + 1u)
89 .if \\n[.$] \&\\$*
90 ..
91 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92 .\" BB/BE - put background/screen (filled box) around block of text
93 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
94 .de BB
95 .if t \{\
96 .sp -.5
97 .br
98 .in +2n
99 .ll -2n
100 .gcolor red
101 .di BX
102 .\}
103 ..
104 .de EB
105 .if t \{\
106 .if "\\$2"adjust-for-leading-newline" \{\
107 .sp -1
108 .\}
109 .br
110 .di
111 .in
112 .ll
113 .gcolor
114 .nr BW \\n(.lu-\\n(.i
115 .nr BH \\n(dn+.5v
116 .ne \\n(BHu+.5v
117 .ie "\\$2"adjust-for-leading-newline" \{\
118 \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
119 .\}
120 .el \{\
121 \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
122 .\}
123 .in 0
124 .sp -.5v
125 .nf
126 .BX
127 .in
128 .sp .5v
129 .fi
130 .\}
131 ..
132 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133 .\" BM/EM - put colored marker in margin next to block of text
134 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135 .de BM
136 .if t \{\
137 .br
138 .ll -2n
139 .gcolor red
140 .di BX
141 .\}
142 ..
143 .de EM
144 .if t \{\
145 .br
146 .di
147 .ll
148 .gcolor
149 .nr BH \\n(dn
150 .ne \\n(BHu
151 \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
152 .in 0
153 .nf
154 .BX
155 .in
156 .fi
157 .\}
158 ..
159 .\" -----------------------------------------------------------------
160 .\" * set default formatting
161 .\" -----------------------------------------------------------------
162 .\" disable hyphenation
163 .nh
164 .\" disable justification (adjust text to left margin only)
165 .ad l
166 .\" -----------------------------------------------------------------
167 .\" * MAIN CONTENT STARTS HERE *
168 .\" -----------------------------------------------------------------
169 .SH "Name"
170 bti \- send a tweet to twitter\&.com or identi\&.ca (or any custom laconi\&.ca installation) from the command line
171 .SH "Synopsis"
172 .fam C
173 .HP \w'\fBbti\fR\ 'u
174 \fBbti\fR [\fB\-\-account\ account\fR] [\fB\-\-password\ password\fR] [\fB\-\-action\ action\fR] [\fB\-\-user\ screenname\fR] [\fB\-\-host\ HOST_NAME\fR] [\fB\-\-proxy\ PROXY:PORT\fR] [\fB\-\-logfile\ LOGFILE\fR] [\fB\-\-page\ PAGENUMBER\fR] [\fB\-\-bash\fR] [\fB\-\-shrink\-urls\fR] [\fB\-\-debug\fR] [\fB\-\-dry\-run\fR] [\fB\-\-verbose\fR] [\fB\-\-version\fR] [\fB\-\-help\fR]
175 .fam
176 .SH "DESCRIPTION"
177 .PP
178 bti sends a tweet message to twitter\&.com or identi\&.ca\&.
179 .SH "OPTIONS"
180 .PP
181 \fB\-\-account account\fR
182 .RS 4
183 Specify the twitter\&.com or identi\&.ca account name\&.
184 .RE
185 .PP
186 \fB\-\-password password\fR
187 .RS 4
188 Specify the password of your twitter\&.com or identi\&.ca account\&.
189 .RE
190 .PP
191 \fB\-\-action action\fR
192 .RS 4
193 Specify the action which you want to perform\&. Valid options are "update" to send a message, "friends" to see your friends timeline, "public" to track public timeline, "replies" to see replies to your messages and "user" to see a specific user\'s timeline\&.
194 .RE
195 .PP
196 \fB\-\-user screenname\fR
197 .RS 4
198 Specify the user you want to see his/her messages while the action is "user"\&.
199 .sp
200 If no screenname is specified, the default is account name\&.
201 .RE
202 .PP
203 \fB\-\-host HOST_NAME\fR
204 .RS 4
205 Specify the host which you want to send your message to\&. Valid options are "twitter" to send to twitter\&.com and "identica" to send to identi\&.ca\&.
206 .sp
207 If you want to send the message to a custom laconi\&.ca installation, you should specify the API URI\&. For example identi\&.ca\'s URI is: https://identi\&.ca/api/statuses\&.
208 .sp
209 If no host is specified, the default is to send to twitter\&.com\&.
210 .RE
211 .PP
212 \fB\-\-proxy PROXY:PORT\fR
213 .RS 4
214 Specify a http proxy value\&. This is not a required option, and only needed by systems that are behind a http proxy\&.
215 .sp
216 If \-\-proxy is not specified but the environment variable \'http_proxy\' is set the latter will be used\&.
217 .RE
218 .PP
219 \fB\-\-logfile LOGFILE\fR
220 .RS 4
221 Specify a logfile for bti to write status messages to\&. LOGFILE is in relation to the user\'s home directory, not an absolute path to a file\&.
222 .RE
223 .PP
224 \fB\-\-shrink\-urls\fR
225 .RS 4
226 Scans the tweet text for valid URL patterns and passes each through the supplied bti\-shrink\-urls script\&. The script will pass the URL to a web service that shrinks the URLs, making it more suitable for micro\-blogging\&.
227 .sp
228 Currently, only http://2tu\&.us/ is used as a URL shrinking service\&.
229 .RE
230 .PP
231 \fB\-\-debug\fR
232 .RS 4
233 Print a whole bunch of debugging messages to stdout\&.
234 .RE
235 .PP
236 \fB\-\-page PAGENUMBER\fR
237 .RS 4
238 When the action is to retrieve updates, it usually retrieves only one page\&. If this option is used, the page number can be specified\&.
239 .RE
240 .PP
241 \fB\-\-dry\-run\fR
242 .RS 4
243 Performs all steps that would normally be done for a given action, but will not connect to the service to post or retrieve data\&.
244 .RE
245 .PP
246 \fB\-\-verbose\fR
247 .RS 4
248 Verbose mode
249 .RE
250 .PP
251 \fB\-\-bash\fR
252 .RS 4
253 Add the working directory and a \'$\' in the tweet message to help specify it is coming from a command line\&. Don\'t put the working directory and the \'$\' in the tweet message\&.
254 .sp
255 This mode also does not report back any errors that might have happened when sending the message, and it sends it in the background, returning immediately, allowing the process to continue on\&.
256 .RE
257 .PP
258 \fB\-\-version\fR
259 .RS 4
260 Print version number\&.
261 .RE
262 .PP
263 \fB\-\-help\fR
264 .RS 4
265 Print help text\&.
266 .RE
267 .SH "DESCRIPTION"
268 .PP
269 bti provides an easy way to send tweet messages direct from the command line or any script\&. It reads the message on standard input and uses the account and password settings either from the command line options, or from a config file, to send the message out\&.
270 .PP
271 It\'s primary focus is to allow you to log everything that you type into a bash shell, in a crazy, "this is what I\'m doing right now!" type of way, letting the world follow along with you constant moving between directories and refreshing your email queue to see if there\'s anything interesting going on\&.
272 .PP
273 To hook bti up to your bash shell, export the following variable:
274 .PP
275
276 \FC PROMPT_COMMAND=\'history 1 | sed \-e "s/^\es*[0\-9]*\es*//" | bti \-\-bash\'\F[]
277 .PP
278 This example assumes that you have the
279 \FC~/\&.bti\F[]
280 set up with your account and password information already in it, otherwise you can specify them as an option\&.
281 .SH "CONFIGURATION"
282 .PP
283 The account and password can be stored in a configuration file in the users home directory in a file named
284 \FC\&.bti\F[]
285 The structure of this file is as follows:
286 .PP
287 \fBaccount\fR
288 .RS 4
289 The twitter\&.com or identi\&.ca account name you wish to use to send this message with\&.
290 .RE
291 .PP
292 \fBpassword\fR
293 .RS 4
294 The twitter\&.com or identi\&.ca password for the account you wish to use to send this message with\&.
295 .RE
296 .PP
297 \fBaction action\fR
298 .RS 4
299 Specify the action which you want to perform\&. Valid options are "update" to send a message, "friends" to see your friends timeline, "public" to track public timeline, "replies" to see replies to your messages and "user" to see a specific user\'s timeline\&.
300 .RE
301 .PP
302 \fBuser screenname\fR
303 .RS 4
304 Specify the user you want to see his/her messages while the action is "user"\&.
305 .RE
306 .PP
307 \fBhost\fR
308 .RS 4
309 The host you want to use to send the message to\&. Valid options are either "twitter" or "identica" to send to twitter\&.com or identi\&.ca respectively\&.
310 .sp
311 If you want to send the message to a custom laconi\&.ca installation, you should specify the API URI\&. For example identi\&.ca\'s URI is: https://identi\&.ca/api/statuses\&.
312 .RE
313 .PP
314 \fBproxy\fR
315 .RS 4
316 The http proxy needed to send data out to the Internet\&.
317 .RE
318 .PP
319 \fBlogfile\fR
320 .RS 4
321 The logfile name for bti to write what happened to\&. This file is relative to the user\'s home directory\&. If this file is not specified here or on the command line, no logging will be written to the disk\&.
322 .RE
323 .PP
324 \fBshrink\-urls\fR
325 .RS 4
326 Setting this variable to \'true\' or \'yes\' will enable the URL shrinking feature\&. This is equivalent to using the \-\-shrink\-urls option\&.
327 .RE
328 .PP
329 \fBverbose\fR
330 .RS 4
331 Setting this variable to \'true\' or \'yes\' will enable the Verbose mode\&.
332 .RE
333 .PP
334 There is an example config file called
335 \FCbti\&.example\F[]
336 in the source tree that shows the structure of the file if you need an example to work off of\&.
337 .PP
338 Configuration options have the following priority:
339 .PP
340 .RS 4
341 command line option
342 .RE
343 .PP
344 .RS 4
345 config file option
346 .RE
347 .PP
348 .RS 4
349 environment variables
350 .RE
351 .PP
352 For example, command line options always override any config file option, or any environment variables\&.
353 .SH "AUTHOR"
354 .PP
355 Written by Greg Kroah\-Hartman
356 <\FCgreg@kroah\&.com\F[]> and Amir Mohammad Saied
357 <\FCamirsaied@gmail\&.com\F[]>\&.

  ViewVC Help
Powered by ViewVC 1.1.26