This is a simple command line tool for writing input from the client to a remote jabber server and outputting to the console.
The command line tool can be installed with:
gem install jabber-tee
The general idea is that you can pipe anything from the console into this, and it will be sent to the remote jabber server:
cat huge_text_file.txt | jabber-tee -u firstname.lastname@example.org --room email@example.com --nick 'Worker Drone'
echo "I am $(whoami) at $(hostname)" | jabber-tee --to firstname.lastname@example.org
Alternatively, you can supply a list of arguments that will be run as a command, which is essentially equivalent:
jabber-tee --to email@example.com -- echo "I am $(whoami) at $(hostname)"
Because entering the same information on the command line for this thing can be tedious, you can create a ~/.jabber-tee.yml file that fills in all of the basic configuration. This file also allows you to further customize the output that is sent to the jabber server.
An example configuration file:
# Global configuration values: username: firstname.lastname@example.org nick: 'Gabe' # Individual profiles that customize global variables profiles: new-hotness: # Uses the standard username, above nick: 'Mr. Super Cool' room: 'HipCentral' password: 'secret' somebody.else: username: email@example.com nick: 'Rocksteady Gabe' to: firstname.lastname@example.org work-stuff: username: email@example.com nick: 'Worker Drone' room: firstname.lastname@example.org
You can then activate these individual profiles from the command line with the '-P' flag. So, the above command could be replaced with:
cat huge_text_file.txt | jabber-tee -P work-stuff