[X2Go-User] x2gocleansessions fix

Gerald Richter - ECOS richter at ecos.de
Fri Dec 6 06:46:43 CET 2013


Hi,

 
x2gocleansessions sometimes fails for me, because there is a lot of extra output in the log like “Proxy: WARNING! Detected drift in system timer. Resetting to current time.”. The following patch fixes the problem:

 
--- /usr/sbin/x2gocleansessions.orig     2013-12-06 06:37:46.000000000 +0100

+++ /usr/sbin/x2gocleansessions           2013-12-06 06:38:45.000000000 +0100

@@ -56,7 +56,7 @@

                my $sess=shift;

                my $user=shift;

                my $log="/tmp/.x2go-${user}/session-C-${sess}.log";

-              my $text=`tail -1 $log 2>/dev/null`;

+             my $text=`grep Session: $log 2>/dev/null|tail -1`;

                if ($text =~ m/Session suspended/)

                {

                               return 0;

 
Regards

 
Gerald

 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x2go.org/pipermail/x2go-user/attachments/20131206/e409fe7a/attachment.html>


More information about the x2go-user mailing list