After some time unclosed sessions fill all the memory on the server. It is hard to discipline users to always close sessions -they just close the client instead.
Is there any more elegant way of clearing all suspended sessions then the command I have here:
for f in /usr/sbin/x2golistsessions_root |grep \|S\| | cut -c-5
; do /usr/
bin/x2goterminate-session "$f" && kill "$f";done