plan9 logo - glenda
  News Links My Software
  home 
  /plan9/rc.html  rc
 

This script is a bit basic and was just to get a bit of understanding in doing network stuff in rc script. I lifted some of it directly from Russ Cox's rlogin shells script.
Boyd Roberts inspired me to go with awk
Jonathan Sergent helped me read $netdir/data a line at a time using read

You can write messages to it's data file to perform custom irc commands eg.
%echo 'PRIVMSG JOIN #plan9' > net/tcp/21/data
and chugly will monitor the plan9 channel
output still goes to $channel though

the code