Hi,

I wrote this little howto - hopefully it'll be of some help, though it 
doesn't require SSHing into the boxes, rather it shuts systems down at a 
certain time via cron:

https://help.ubuntu.com/community/UbuntuLTSP/AutomatedTCShutodwn

A simple for loop would probably do the trick if you have the IPs of the 
systems you want to shut down...Your script sounds handy, like something 
we'll be implementing in TCM at some point. you'll want to probably get 
ssh IDs going so you don't have to put your password anywhere easily 
accessible.

---
#!/bin/bash
HOSTS="123.123.123.123 456.456.456.456 etc. etc."

for i in $HOSTS; do
    ssh r...@$ halt
done
---


Cheers,
Jordan/Lns


SZABO Zsolt wrote:
> I am trying to write a script that shut down the (given set of) thin 
> clients (TC). Therefore, I have installed openssh-server in ltsp-chroot, 
> and I am able to ssh to a TC from the server and shut the TC down.
>
> So, what should such a script look like? Or is there a better, more 
> appropriate solution for this task?
> TIA,
> --
> Zsolt
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _____________________________________________________________________
> 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
>   


-- 
Jordan Erickson
Owner, Logical Networking Solutions
http://www.logicalnetworking.net
707-636-5678

* Please consider the environment before printing this e-mail *

Latest LNS Blogs - http://blog.logicalnetworking.net

        The wrong focus of technology in education
        Why aren't computers more like telephones?
        OpenVPN and Gnome Network Manager


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_____________________________________________________________________
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

Reply via email to