Tool of the year: ii (irc it) - Blog - Open Source - schlitt.info

schlitt.info - php, photography and private stuff

Tool of the year: ii (irc it)

Via James Pic I just got to know the fantastic tool irc it (short ii). ii is a very simple and slick designed IRC client, that works on the Linux / Unix shell. ii simlpy uses the file system to structure IRC connections, channels and queries and offers FIFOs to communicate with the server. It allows you to write IRC bots in bash (or any other language that allows file access) with a glimpse and my mind already imagines a huge ton of possible applications. My first test showed that it works really cool! Amazingly cool tool and therefore in the sense of BitlBee (yes, I skipped a year ;) my tool of the year (so far).

Some example output of the filesystem structure ii creates:

dotxp@tango /tmp $ ls -l -R irc/ irc/: total 4 drwx------ 5 dotxp users 4096 2008-03-06 22:40 irc.freenode.net irc/irc.freenode.net: total 24 drwx------ 2 dotxp users 4096 2008-03-06 22:40 #ezcomponents drwx------ 2 dotxp users 4096 2008-03-06 22:25 freenode-connect prwx------ 1 dotxp users 0 2008-03-06 22:40 in -rw-r--r-- 1 dotxp users 10321 2008-03-06 22:40 out drwx------ 2 dotxp users 4096 2008-03-06 22:39 #test irc/irc.freenode.net/#ezcomponents: total 4 prwx------ 1 dotxp users 0 2008-03-06 22:40 in -rw-r--r-- 1 dotxp users 75 2008-03-06 22:40 out irc/irc.freenode.net/freenode-connect: total 4 -rw-r--r-- 1 dotxp users 92 2008-03-06 22:38 out irc/irc.freenode.net/#test: total 4 prwx------ 1 dotxp users 0 2008-03-06 22:39 in -rw-r--r-- 1 dotxp users 128 2008-03-06 22:39 out

To use the client, simply do a tail on an out FIFO and echo your commands and chat messages into an in FIFO. That's it, have fun! :)

If you liked this blog post or learned something, please consider using flattr to contribute back: .

Trackbacks

Comments

Add new comment

Fields with bold names are mandatory.