Code:
++ sed -n '/Status[[:blank:]]*:/s/.*\(O[^[:blank:]]*\).*/\1/p' /dev/fd/63
+++ lynx --dump -auth admin:password http://IP/Status.htm
+ actualStatus=Off
+ previousStatus=
+ '[' Off '!=' '' ']'
+ curl -u user:passw -d 'status="Server' 'Off"' http://twitter.com/statuses/update.xml
curl: (6) Couldn't resolve host 'Off"'
<?xml version="1.0" encoding="UTF-8"?>
<hash>
<request>/statuses/update.xml</request>
<error>Status is a duplicate.</error>
</hash>
+ echo Off
+ sleep 1s
+ :
++ sed -n '/Status[[:blank:]]*:/s/.*\(O[^[:blank:]]*\).*/\1/p' /dev/fd/63
+++ lynx --dump -auth user:password http://IP/Status.htm
+ actualStatus=Off
+ previousStatus=Off
+ '[' Off '!=' Off ']'
+ sleep 1s
+ :
++ sed -n '/Status[[:blank:]]*:/s/.*\(O[^[:blank:]]*\).*/\1/p' /dev/fd/63
+++ lynx --dump -auth user:password http://IP/Status.htm
+ actualStatus=Off
+ previousStatus=Off
+ '[' Off '!=' Off ']'
+ sleep 1s
+ :
+ echo On
+ sleep 1s
+ :
++ sed -n '/Status[[:blank:]]*:/s/.*\(O[^[:blank:]]*\).*/\1/p' /dev/fd/63
+++ lynx --dump -auth user:password
http://IP/Status.htm+ actualStatus=On
+ previousStatus=On
+ '[' On '!=' On ']'
+ sleep 1s
+ :
++ sed -n '/Status[[:blank:]]*:/s/.*\(O[^[:blank:]]*\).*/\1/p' /dev/fd/63
+++ lynx --dump -auth user:password
http://IP/Status.htm+ actualStatus=On
+ previousStatus=On
+ '[' On '!=' On ']'
+ sleep 1s
+ :
++ sed -n '/Status[[:blank:]]*:/s/.*\(O[^[:blank:]]*\).*/\1/p' /dev/fd/63
+++ lynx --dump -auth user:password
http://IP/Status.htm+ actualStatus=On
+ previousStatus=On
+ '[' On '!=' On ']'
+ sleep 1s
+ :
++ sed -n '/Status[[:blank:]]*:/s/.*\(O[^[:blank:]]*\).*/\1/p' /dev/fd/63
+++ lynx --dump -auth user:password
http://IP/Status.htm+ actualStatus=Off
+ previousStatus=On
+ '[' Off '!=' On ']'
+ curl -u user:passw -d 'status="Server' 'Off"'
http://twitter.com/statuses/update.xmlcurl: (6) Couldn't resolve host 'Off"'
<?xml version="1.0" encoding="UTF-8"?>
<hash>
<request>/statuses/update.xml</request>
<error>Status is a duplicate.</error>
</hash>
+ echo Off
+ sleep 1s
+ :
[/code]