[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] TeacherTool.py Help debugging



Around Tue,Jan 07 2003, at 08:57,  Tim Litwiller, wrote:
> do a netstat -t -e | grep x11 | sed -e 's/\W\+/ /g'
> 
> then count the line parts to ind where the parts you want for the user 
> display are
> then around line 288 find the lines like
> machine=lineParts[5]
> user=lineParts[7]
> change the 5 and the 7 to the correct count,  I think on mine it was the 
> parts I counted -1 to get the correct display.
> on my machine at home they were 6 and 10
> on my machine at work it is 3 and 11  
> 
> both are beta ltsp 3.0 of different ages.

Or,  just above:
 
machine=lineParts[5] 

add the line:

print lineParts

then run the program, you should see in the console something like:
['tcp', '0', '0', 'localhost', 'localdo', '32811', 'localhos', 'x11', 
'ssh', 'offset', 'ESTABLISHED', 'morris_r', '16838']

starting with zero, count till you find the user name, modify 
user=lineParts[11]
with the correct count.

-- 
Roger Morris
morris_r 4j lane edu





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]