Xymon Mailing List Archive search

Hobbit to IPPhone Beta

list Josh Luthman
Fri, 28 Mar 2008 08:40:22 -0400
Message-Id: <user-86f09263f1d1@xymon.invalid>

I think you're getting the two people with two problems mixed up.  I'm not
getting anything to the phone when I execute hobbit.cgi.  Another person is
getting error 6.

On Fri, Mar 28, 2008 at 5:54 AM, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
 Josh Luthman wrote:

I did get XML from that full URL, among other things I learned that
<Prompt>It's not easy being green :-)</Prompt>

Heh, okay that's good as it seems the code is working properly.

Now I did a helloworld.cgi that looks like:
#!/usr/bin/perl
print "Hello World!\n";

and I get an HTTP 500 error
[Thu Mar 27 19:57:35 2008] [error] [client 172.16.0.153] malformed header
from script. Bad header=Hello World!: hellowworld.cgi
[Thu Mar 27 19:57:35 2008] [warn] /perl/hellowworld.cgi did not send an
HTTP header

So either my helloworld.cgi is wrong or mod_perl is confused, I think.

Oh yeah sorry....for it to work properly it should be:

print "Content-type: text/plain\n\n";
print "Hello World!\n";

... But I think your mod_perl is already working, otherwise you wouldn't
have gotten any XML back from your previous test.
Tell me more about this Error Number=6.  Where is it being displayed? I
have gone through all the Cisco docs, and according to them there are only
errors 1,2,3, & 4.  What model phone do you have?

-Charles
-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer