Hello everybody, Is there a better way to (gracefully) kill idle sessions than what's on this wiki entry? http://wiki.sun-rays.org/index.php/Idle_Session_Kill
Setup: OS: Oracle Solaris 10 8/11 s10x_u10wos_17b X86 SRSS: 5.2.1 What I have at the moment, for testing purposes, are two custom scripts: 1) I added this line at the end of /etc/profile. Runs a script called reap-session whenever a user disconnects from the terminal: opt/SUNWut/bin/utaction -d '/home/scripts/reap-session' -c 'pkill reap-session ' 1>/dev/null 2>&1 & 2) $ cat /home/scripts/reap-session: #!/bin/sh GRACETIME=3600 # 1 hour sleep $GRACETIME # pkill -15 -U `/usr/ucb/whoami` # too drastic gnome-session-save --force-logout --display=:35.0 > /home/lmigueles/Desktop/errors.txt 2>&1 # 35.0 is the display assigned to my session at the moment this script is run in the testing But this isn't working. Look at the output of gnome-session-save: $ cat /home/lmigueles/Desktop/errors.txt *Failed to connect to the session manager* If I run the script from whithin the session, it works perfectly. The problem is when the script is run automatically, with the session detached from the server. It would be very nice to make this 'gnome-session-save' to actually work in a script. The user experience is much better than killing all their processes. Any thoughts? Thanks, Lucas
_______________________________________________ SunRay-Users mailing list SunRay-Users@filibeto.org http://www.filibeto.org/mailman/listinfo/sunray-users