Hello A.J., > It should be fairly simple in fact :-)
Yep it is. I had something like that on a non-LTSP-environment long time ago, and it worked. No scripts available, as I do not administer that network anymore. > Start with something like this: > $W = `who` > Which will place the list of logged in users in $W > Then you can use something like > echo $W | wc -l - > To determine the number of lines in the output, (check the ABSG to > construct a nice if). If the number is 0 then run do: > sleep 600 > Repeat the test, if it is still 0, run a shutdown. If not, exit. > Since cron runs your script in the background, you can merely sleep for > 600 seconds and recheck to handle your ten minute check. > That should get you started. I don't know if it could happen in your environment, but take caution for forgotten logins! Imagine the case where the server is started each monday by an admin who has a key to the server's cupboard (or whatever). Then someone forgets a logout on saturday morning, which is detected by monday noon, and then everyone logs off for lunch. Ten minutes later, the server is down, and the admin far away :-( Let me tell you that sh** happens ;-\ Best regards, Anselm Martin Hoffmeister Stockholm Projekt Computer-Service <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net
