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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1507 - (hide annotations)
Mon Jan 12 15:52:54 2009 UTC (11 years, 10 months ago) by gregoa
File size: 7455 byte(s)
[svn-upgrade] Integrating new upstream version, bti (009)
1 gregoa 1473 .\" 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 from the command line
171     .SH "Synopsis"
172     .fam C
173     .HP \w'\fBbti\fR\ 'u
174 gregoa 1507 \fBbti\fR [\fB\-\-account\ account\fR] [\fB\-\-password\ password\fR] [\fB\-\-host\ HOST_NAME\fR] [\fB\-\-proxy\ PROXY:PORT\fR] [\fB\-\-bash\fR] [\fB\-\-debug\fR] [\fB\-\-version\fR] [\fB\-\-help\fR]
175 gregoa 1473 .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\-\-host HOST_NAME\fR
192     .RS 4
193     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\&.
194     .sp
195     If no host is specified, the default is to send to twitter\&.com\&.
196     .RE
197     .PP
198 gregoa 1507 \fB\-\-proxy PROXY:PORT\fR
199     .RS 4
200     Specify a http proxy value\&. This is not a required option, and only needed by systems that are behind a http proxy\&.
201     .sp
202     If no host is specified, the default is to send to twitter\&.com\&.
203     .RE
204     .PP
205 gregoa 1473 \fB\-\-debug\fR
206     .RS 4
207     Print a whole bunch of debugging messages to stdout\&.
208     .RE
209     .PP
210     \fB\-\-bash\fR
211     .RS 4
212     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\&.
213     .sp
214     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\&.
215     .RE
216     .PP
217     \fB\-\-version\fR
218     .RS 4
219     Print version number\&.
220     .RE
221     .PP
222     \fB\-\-help\fR
223     .RS 4
224     Print help text\&.
225     .RE
226     .SH "DESCRIPTION"
227     .PP
228     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\&.
229     .PP
230     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\&.
231     .PP
232     To hook bti up to your bash shell, export the following variable:
233     .PP
234    
235     \FC PROMPT_COMMAND=\'history 1 | sed \-e "s/^\es*[0\-9]*\es*//" | bti \-\-bash\'\F[]
236     .PP
237     This example assumes that you have the
238     \FC~/\&.bti\F[]
239     set up with your account and password information already in it, otherwise you can specify them as an option\&.
240     .SH "CONFIGURATION"
241     .PP
242     The account and password can be stored in a configuration file in the users home directory in a file named
243     \FC\&.bti\F[]
244     The structure of this file is as follows:
245     .PP
246     \fBaccount\fR
247     .RS 4
248     The twitter\&.com or identi\&.ca account name you wish to use to send this message with\&.
249     .RE
250     .PP
251     \fBpassword\fR
252     .RS 4
253     The twitter\&.com or identi\&.ca password for the account you wish to use to send this message with\&.
254     .RE
255     .PP
256     \fBhost\fR
257     .RS 4
258     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\&.
259     .RE
260     .PP
261 gregoa 1507 \fBproxy\fR
262     .RS 4
263     The http proxy needed to send data out to the Internet\&.
264     .RE
265     .PP
266 gregoa 1473 There is an example config file called
267     \FCbti\&.example\F[]
268     in the source tree that shows the structure of the file if you need an example to work off of\&.
269     .SH "AUTHOR"
270     .PP
271     Written by Greg Kroah\-Hartman
272     \FCgreg@kroah\&.com\F[]\&.

  ViewVC Help
Powered by ViewVC 1.1.26