View Single Post
  #3   (View Single Post)  
Old 5th December 2011
steamrent steamrent is offline
New User
 
Join Date: Dec 2011
Posts: 5
Default

Well, I'm sure you have an understanding of general IRC even if you don't use it? In any case, sic is a very simple IRC client (that's what sic is an acronym for) that outputs the actualy IRC interaction to the shell directly, i.e.:

Code:
[~] $ sic -h irc.freenode.net 2>&1 | tee -a irc.log
zelazny.freenode.net: 12/05/11 14:45 >< NOTICE (*): *** Looking up your hostname...
zelazny.freenode.net: 12/05/11 14:45 >< NOTICE (*): *** Checking Ident
zelazny.freenode.net: 12/05/11 14:45 >< NOTICE (*): *** Found your hostname
^C
[~] $
But sometimes it disconnects, such as the common reason 'Ping timeout'. Most clients can be configured to automatically reconnected if it sees that it's not connected, but in the case of sic, it drops back into the terminal:

Code:
[~] $ sic -h irc.freenode.net 2>&1 | tee -a irc.log
zelazny.freenode.net: 12/05/11 14:45 >< NOTICE (*): *** Looking up your hostname...
zelazny.freenode.net: 12/05/11 14:45 >< NOTICE (*): *** Checking Ident
zelazny.freenode.net: 12/05/11 14:45 >< NOTICE (*): *** Found your hostname
sic shutting down: parse timeout
[~] $
When it drops back into the shell, I would like it to instead, within the same shell, have sic reconnect back with the server again, and if possible join some channels automatically (that's probably a separate project for later, unless I can manage to get shell to execute some commands within sic after it's connected).
Reply With Quote