In article <JNEIKJHHLNEPPOKDLBLBIEOMDKAA.david.carter@codepipe.com>,
David J Carter <david.carter@codepipe.com> wrote:> Hi all,
>
> Did I see on the list a while back someone creating a program to reboot the
> GS phones at a pre set time.
>
> If anyone has this program I would love a copy if it is freely
> distributable.
The following shell script does it for me (can't remember where I got it):
#!/bin/sh
PHONES="192.168.0.200 192.168.0.201"
TEMPFILE=/tmp/cook$$.txt
for ip in ${PHONES}
do
curl -s -o/dev/null -c${TEMPFILE}
-d"P2=admin&Login=Login&gnkey=0b82" http://${ip}/dologin.htm
curl -s -o/dev/null -b${TEMPFILE} http://${ip}/rs.htm
done
#end---
Just list your phone(s) in PHONES. If you want it done automatically
at a set time, just invoke the script from cron.
Cheers
Tony
--
Tony Mountifield
Work: tony@softins.co.uk - http://www.softins.co.uk
Play: tony@mountifield.org - http://tony.mountifield.org