Here is a hack that will work. I am working on a better way to do
this. This is in bash. ###ON Server
Create directory: Mkdir /var/log/tracking
###Run this from bash. ipAddress=$(ifconfig eth0 | awk '/inet/ { print
$2 }' | awk -F ":" '{ print $2 }')
echo "$ipAddress" > /var/log/tracking/ip.log
###Export /var/log/tracking rw in /etc/exports
Cd /opt/ltsp/i386/bin
vi trackip
###Add the following lines:
#Insert IP
ipAddress=$(ifconfig eth0 | awk '/inet/ { print $2 }' | awk -F ":" '{
print $2 }')
while read line do
if [ "$line" != "$ipAddress" ]
then
echo "$ipAddress" >> /var/log/tracking/ip.log
fi
done < /var/log/tracking/ip.log
###Save
Chmod 0777 trackip
Cd /opt/ltsp/i386/etc
Edit rc.local /opt/ltsp/i386/bin/touchip
###Put this next file wherever you feel safe putting it
###Shutdown script
#read shutdown and re-create
ipAddress=$(ifconfig eth0 | awk '/inet/ { print $2 }' | awk -F ":" '{
print $2 }')
while read line
do
if ["$line" != "$ipAddress"]
then
ping -c 2 -W 2 -q "$line"
if [ $? -eq 0 ]
then ltspinfo --host="$line" --shutdown
fi
fi
done < /var/log/tracking/ip.log
echo "$ipAddress" > /var/log/tracking/ip.log
Richard Shade
Project Lead - CTI Systems
Effective Teleservices, Inc.
1903 Berry Dr.
Nacogdoches, TX 75965
(w) 936-559-2280
(c) 936-371-1817
"Playing by the Rules"
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Gregan
Sent: Thursday, May 26, 2005 1:55 PM
To: Verner Kj�rsgaard
Cc: [email protected]
Subject: Re: [Ltsp-discuss] Thin Client auto Shutdown?
Certainly....
Verner Kj�rsgaard wrote:
Torsdag 26 maj 2005 18:33 skrev Chris Gregan:
Hi Richard and list,
- and when you do, please be kind enough and share with the rest of
us what you did.
- being able to do such a thing, say at midnight, is a pearl.
Best regards,
Verner Kjaersgaard
Denmark.
Both excellent suggestions, thanks! I'll try each one out.
Richard Shade wrote:
Chris, Do you have a list of the clients if so then edit your
lts.conf and set ALLOW_SHUTDOWN = Y.
Then you can make a script that loops thru the list and executes
"ltspinfo -h $HOST --shutdown"
Richard Shade
Project Lead - CTI Systems
Effective Teleservices, Inc.
1903 Berry Dr.
Nacogdoches, TX 75965
(w) 936-559-2280
(c) 936-371-1817
"Playing by the Rules"
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Chris Gregan
Sent: Thursday, May 26, 2005 10:37 AM
To: [email protected]
Subject: [Ltsp-discuss] Thin Client auto Shutdown?
Hello all,
I was wondering if there was a way to power down the clients on a
system on a schedule (ala Cron). I realize there is no Cron running
on the client, but I was hoping there was a way to apply a Cron job
on the host, to all of the clients.
Thanks,
Chris
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your
own Applications - visit
http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_____________________________________________________________________
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
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit
http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_____________________________________________________________________
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
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit
http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_____________________________________________________________________
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
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=fad-ysdn-ostg-q22005
_____________________________________________________________________
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