Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 002
Fetching contributors…

Cannot retrieve contributors at this time

89 lines (87 sloc) 2.616 kb
.\" Title: bti
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
.\" Date: May 2008
.\" Manual: bti
.\" Source: bti
.\"
.TH "BTI" "1" "May 2008" "bti" "bti"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
bti - send a tweet to twitter.com from the command line
.SH "SYNOPSIS"
.HP 4
\fBbti\fR [\fB\-\-account\ account\fR] [\fB\-\-password\ password\fR] [\fB\-\-clean\fR] [\fB\-\-debug\fR] [\fB\-\-version\fR] [\fB\-\-help\fR]
.SH "DESCRIPTION"
.PP
bti sends a twitter message to twitter\.com\.
.SH "OPTIONS"
.PP
\fB\-\-account account\fR
.RS 4
Specify the twitter\.com account name\.
.RE
.PP
\fB\-\-password password\fR
.RS 4
Specify the password of your twitter\.com account\.
.RE
.PP
\fB\-\-debug\fR
.RS 4
Print a whole bunch of debugging messages to stdout\.
.RE
.PP
\fB\-\-clean\fR
.RS 4
Don\'t put the working directory and the \'$\' in the twitter message\.
.RE
.PP
\fB\-\-version\fR
.RS 4
Print version number\.
.RE
.PP
\fB\-\-help\fR
.RS 4
Print help text\.
.RE
.SH "DESCRIPTION"
.PP
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\.
.PP
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\.
.PP
To hook bti up to your bash shell, export the following variable:
.PP
PROMPT_COMMAND=\'history 1 | sed \-e "s/^\es*[0\-9]*\es*//" | bti\'
.PP
This example assumes that you have the
\fI~/\.bti\fR
set up with your account and password information already in it, otherwise you can specify them as an option\.
.SH "CONFIGURATION"
.PP
The account and password can be stored in a configuration file in the users home directory in a file named
\fI\.bti\fR
The structure of this file is as follows:
.PP
\fBaccount\fR
.RS 4
The twitter\.com account name you wish to use to send this message with\.
.RE
.PP
\fBpassword\fR
.RS 4
The twitter\.com password for the account you wish to use to send this message with\.
.RE
.PP
There is an example config file called
\fIbti\.example\fR
in the source tree that shows the structure of the file if you need an example to work off of\.
.SH "AUTHOR"
.PP
Written by Greg Kroah\-Hartman
<greg@kroah\.com>\.
Jump to Line
Something went wrong with that request. Please try again.