Its been a while between gtalkbot releases, and that's mainly because the current version "just works" and no one has reported any bugs or feature requests. However, the other day I was running a lot of long lived commands, and started getting annoyed at not knowing when they were finished. I thought it would be nice to get sent an IM when a command had completed. So, I implemented that in this new release.
There is a simple shell script called notify.sh, which you need to modify to have the right path for an outbox directory. This directory is watched by gtalkbot, and files in the directory are processed as part of the idle loop. The format for files in the directory is the jabber ID to send to on the first line, and then the message on the remaining lines. I guess that means you don't have to use the shell script at all if you want, just have something dump files in the magic directory.
You then need to add this line to the gtalkbot config file:
connectwith email@example.com password mypassword pluginsdir /data/src/gtalkbot/plugins outboxdir /data/src/gtalkbot/outbox authfile /data/src/.gtalkbot-passwd
So, there you go. I now get IMs when commands are completed, by running them like this:
$ longcommand; echo "long command done" | notify firstname.lastname@example.org
The source for gtalkbot 1.4 is here.
Tags for this post: gtalkbot release
Related posts: RemoteWorker v74; Another version of blather; MythNetTV release 2; MythNetTV release 7; PNGtools 0.4; MythIpTV Beta 1
posted at: 17:25 | path: /gtalkbot | permanent link to this entry