[K12OSN] Re:Re:Re Teachertool Problems

Robert Arkiletian robark at gmail.com
Thu May 3 20:26:37 UTC 2007


On 5/3/07, James P. Kinney III <jkinney at localnetsolutions.com> wrote:
> On Thu, 2007-05-03 at 20:52 +0200, Stefan Frey wrote:
> > I just forget something :) its the german version so its not
> > ETABLISHED its VERBUNDEN ;P
>
> Ah HA!!
>
> Which is why it's not working for you at all! The code is compiled for
> english (LANG=C) and it's looking specifically for the word
> "ESTABLISHED".

Bingo. Edit the code for fl_teachertool.cxx. Find this line

FILE* fp=popen("netstat -t -e -n|grep :6000| grep ESTABLISHED |sed -e
's/:/ /g'| sed -e 's/ESTABLISHED/ESTABLISHED /' | awk '{print
$9,$6}'|sort|uniq","r");

insert LANG=C like this

FILE* fp=popen("LANG=C netstat -t -e -n|grep :6000| grep ESTABLISHED
|sed -e 's/:/ /g'| sed -e 's/ESTABLISHED/ESTABLISHED /' | awk '{print
$9,$6}'|sort|uniq","r");

I will fix this in my next release this summer.

-- 
Robert Arkiletian
Eric Hamber Secondary, Vancouver, Canada
Fl_TeacherTool http://www3.telus.net/public/robark/Fl_TeacherTool/
C++ GUI tutorial http://www3.telus.net/public/robark/




More information about the K12OSN mailing list