Im no expert at scripting but I have writen several little scripts
that check our web site, a key computer that logs keycard access and
another that are security cameras. They all have html's  that are
accessable from inhouse. I run all these as cron jobs on a linux
computer.

my script looks like this ... basically

wget --tries=5 --dont-remove-listing 10.1.0.36
if ! [ -e /root/index.html -o -e /root/bin/index.html ];  then
.....
[run some commands and email me that the computer is not found]

This is fine and has worked great for some time.

However now we have some new equipment and they dont seem to work.
with this simple routine.

When I enter into the equipment via windows browswer it appears to be
html://10.1.0.36/main.cgi
I asume that wget does not support cgi.
I have typed into the windows browswer html://10.1.0.36/index.html and
that seems to work in windows but then when I use wget ....

/etc/crontab #wget --tries=5 --force-html http://10.1.0.26/index.html
--15:53:31--  http://10.1.0.26/index.html
           => `index.html'
Connecting to 10.1.0.26:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authorization failed.
/etc/e-smith/templates/etc/crontab #

Im not sure what this is telling me accept perhaps ?? Im not
authorized, (linux does tend to tell you the real reason, albiet not
always straighforward.)

Any thoughts on resolving this.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---

Reply via email to