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 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>--bash</option></arg>
32 <arg><option>--debug</option></arg>
33 <arg><option>--version</option></arg>
34 <arg><option>--help</option></arg>
38 <refsect1><title>DESCRIPTION</title>
39 <para>bti sends a twitter message to twitter.com.
43 <refsect1><title>OPTIONS</title>
46 <term><option>--account account</option></term>
49 Specify the twitter.com account name.
54 <term><option>--password password</option></term>
57 Specify the password of your twitter.com account.
62 <term><option>--debug</option></term>
64 <para>Print a whole bunch of debugging messages to stdout.</para>
68 <term><option>--bash</option></term>
71 Add the working directory and a '$' in the twitter message to
72 help specify it is coming from a command line. Don't put the
73 working directory and the '$' in the twitter message.
78 <term><option>--version</option></term>
80 <para>Print version number.</para>
84 <term><option>--help</option></term>
86 <para>Print help text.</para>
93 <title>DESCRIPTION</title>
95 bti provides an easy way to send twitter messages direct from the
96 command line or any script. It reads the message on standard
97 input and uses the account and password settings either from the
98 command line options, or from a config file, to send the message
102 It's primary focus is to allow you to log everything that you
103 type into a bash shell, in a crazy, "this is what I'm doing right
104 now!" type of way, letting the world follow along with you
105 constant moving between directories and refreshing your email
106 queue to see if there's anything interesting going on.
109 To hook bti up to your bash shell, export the following variable:
112 <literal> PROMPT_COMMAND='history 1 | sed -e "s/^\s*[0-9]*\s*//" | bti --bash'</literal>
115 This example assumes that you have the
116 <filename>~/.bti</filename> set up with your account and password
117 information already in it, otherwise you can specify them as an
123 <title>CONFIGURATION</title>
125 The account and password can be stored in a configuration file
126 in the users home directory in a file named
127 <filename>.bti</filename> The structure of this file is as
132 <term><option>account</option></term>
135 The twitter.com account name you wish to use to send this
141 <term><option>password</option></term>
144 The twitter.com password for the account you wish to use
145 to send this message with.
151 There is an example config file called
152 <filename>bti.example</filename> in the source tree that shows
153 the structure of the file if you need an example to work off of.
157 <refsect1><title>AUTHOR</title>
158 <para>Written by Greg Kroah-Hartman <email>greg@kroah.com</email>.</para>