2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
12 <productname>bti</productname>
16 <refentrytitle>bti</refentrytitle>
17 <manvolnum>1</manvolnum>
18 <refmiscinfo class="version"></refmiscinfo>
22 <refname>bti</refname>
23 <refpurpose>send a tweet to twitter.com or identi.ca from the command line</refpurpose>
28 <command>bti</command>
29 <arg><option>--account account</option></arg>
30 <arg><option>--password password</option></arg>
31 <arg><option>--host HOST_NAME</option></arg>
32 <arg><option>--bash</option></arg>
33 <arg><option>--debug</option></arg>
34 <arg><option>--version</option></arg>
35 <arg><option>--help</option></arg>
39 <refsect1><title>DESCRIPTION</title>
40 <para>bti sends a tweet message to twitter.com or identi.ca.
44 <refsect1><title>OPTIONS</title>
47 <term><option>--account account</option></term>
50 Specify the twitter.com or identi.ca account name.
55 <term><option>--password password</option></term>
58 Specify the password of your twitter.com or identi.ca account.
63 <term><option>--host HOST_NAME</option></term>
66 Specify the host which you want to send your message to. Valid
67 options are "twitter" to send to twitter.com and "identica" to
71 If no host is specified, the default is to send to twitter.com.
76 <term><option>--debug</option></term>
78 <para>Print a whole bunch of debugging messages to stdout.</para>
82 <term><option>--bash</option></term>
85 Add the working directory and a '$' in the tweet message to
86 help specify it is coming from a command line. Don't put the
87 working directory and the '$' in the tweet message.
90 This mode also does not report back any errors that might have
91 happened when sending the message, and it sends it in the
92 background, returning immediately, allowing the process to
98 <term><option>--version</option></term>
100 <para>Print version number.</para>
104 <term><option>--help</option></term>
106 <para>Print help text.</para>
113 <title>DESCRIPTION</title>
115 bti provides an easy way to send tweet messages direct from the
116 command line or any script. It reads the message on standard
117 input and uses the account and password settings either from the
118 command line options, or from a config file, to send the message
122 It's primary focus is to allow you to log everything that you
123 type into a bash shell, in a crazy, "this is what I'm doing right
124 now!" type of way, letting the world follow along with you
125 constant moving between directories and refreshing your email
126 queue to see if there's anything interesting going on.
129 To hook bti up to your bash shell, export the following variable:
132 <literal> PROMPT_COMMAND='history 1 | sed -e "s/^\s*[0-9]*\s*//" | bti --bash'</literal>
135 This example assumes that you have the
136 <filename>~/.bti</filename> set up with your account and password
137 information already in it, otherwise you can specify them as an
143 <title>CONFIGURATION</title>
145 The account and password can be stored in a configuration file
146 in the users home directory in a file named
147 <filename>.bti</filename> The structure of this file is as
152 <term><option>account</option></term>
155 The twitter.com or identi.ca account name you wish to use to send this
161 <term><option>password</option></term>
164 The twitter.com or identi.ca password for the account you wish to use
165 to send this message with.
170 <term><option>host</option></term>
173 The host you want to use to send the message to. Valid
174 options are either "twitter" or "identica" to send to
175 twitter.com or identi.ca respectively.
181 There is an example config file called
182 <filename>bti.example</filename> in the source tree that shows
183 the structure of the file if you need an example to work off of.
187 <refsect1><title>AUTHOR</title>
188 <para>Written by Greg Kroah-Hartman <email>greg@kroah.com</email>.</para>