3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
8 .TH "BTI" "1" "May 2008" "bti" "bti"
9 .\" disable hyphenation
11 .\" disable justification (adjust text to left margin only)
14 bti - send a tweet to twitter.com from the command line
17 \fBbti\fR [\fB\-\-account\ account\fR] [\fB\-\-password\ password\fR] [\fB\-\-clean\fR] [\fB\-\-debug\fR] [\fB\-\-version\fR] [\fB\-\-help\fR]
20 bti sends a twitter message to twitter\.com\.
23 \fB\-\-account account\fR
25 Specify the twitter\.com account name\.
28 \fB\-\-password password\fR
30 Specify the password of your twitter\.com account\.
35 Print a whole bunch of debugging messages to stdout\.
40 Don\'t put the working directory and the \'$\' in the twitter message\.
45 Print version number\.
54 bti provides an easy way to send twitter 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\.
56 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\.
58 To hook bti up to your bash shell, export the following variable:
61 PROMPT_COMMAND=\'history 1 | sed \-e "s/^\es*[0\-9]*\es*//" | bti\'
63 This example assumes that you have the
65 set up with your account and password information already in it, otherwise you can specify them as an option\.
68 The account and password can be stored in a configuration file in the users home directory in a file named
70 The structure of this file is as follows:
74 The twitter\.com account name you wish to use to send this message with\.
79 The twitter\.com password for the account you wish to use to send this message with\.
82 There is an example config file called
84 in the source tree that shows the structure of the file if you need an example to work off of\.
87 Written by Greg Kroah\-Hartman