Dear spinlander
Since sometime, I am using a script to automatically log out a user from its
session after an acquisition sequence. Briefly, my script is written in
python, and do essentially the same thing than the ‘multizg’ AU program,
except that the session is terminated with these commands:
NMRuser=getpass.getuser()
os.system(‘pkill -u ‘ + NMRuser)
However, running this script was leaving the system locked for the next
user, who was unable to use the BSMS panel. After some troubleshooting, I
discovered that the ‘pkill’ command was not giving enough time to the system
to fully recover after the acquisition. I have thus introduced a timeout
before the pkill:
time.sleep(300)
It was working great for some time, but recently, the same problem appeared
again. I think that my script, and especially the ‘pkill’, are still
responsible of this. I wonder if any of you have a more convenient way to
log out a user after an overnight sequence.
Thank you for your advices
Serge Lavoie
Université du Québec à Chicoutimi
Québec, Canada
Received on Wed Jun 29 2016 - 11:04:24 MST