Piping from BASH in to an Instant Messenger??

Is it possible to pipe a command in to an instant messenger e.g pidgin, finch or something similar and have it send??? e.g echo "hello" | messenger Or is there anything similar?? Thanks in advance!

I don't know if any messengers support reading messages from stdin, but luckily on UNIX (and particularly Linux) there's a library or script module for everything. Examples are the library used by Pidgin (libpurple) or Net::XMPP for Jabber/GTalk communication in Perl.