[Xitami] A newbie question....
Francis Turner
francis.turner at gmail.com
Thu Apr 6 22:35:10 CEST 2006
the spawning of a second window makes me wonder whether you are
running the perl script direct or calling it from soemthign else (a
batch file?).
I've done a lot of troubleshooting in my time and this dounds like a
case where the best approach is to start with a known working script
(e.g. my example.cgi) and pasteing in ever larger portions of your
non-working script until the "doh"/"eureka" moment (depending on your
mood) strikes and you see where the problem is
On 4/5/06, Richard.Copits at bwc.state.oh.us
<Richard.Copits at bwc.state.oh.us> wrote:
>
> Thank you! The example that you gave worked as did the examples on the
> page that you recommended.
> It's now obvious that the problem is in the code in the program so I
> need to start digging in that.
> I really appreciate your suggestions and help in narrowing down the
> problem area!!
>
>
> -----Original Message-----
> From: xitami-bounces at lists.xitami.org
> [mailto:xitami-bounces at lists.xitami.org] On Behalf Of Francis Turner
> Sent: Wednesday, April 05, 2006 3:28 AM
> To: Xitami Users General Discussion
> Subject: Re: [Xitami] A newbie question....
>
> OK you have a problem with perl being called by Xitami. Perl should
> not be opening a comand prompt window. I've never seen this behaviour
> so I'm not completely clear why it is doing so but I repeat my
> suggestion to try and run some perl simpler CGI scripts and see if
> they do the same thing.
>
> E.g. create a file called example.cgi in your cgi/bin directory with
> the following contents and see if http://localhost/cgi-bin/example.cgi
> produces displayable HTML or a blank screen
> ------- start of example.cgi ---
> #!/usr/local/bin/perl
>
> use CGI qw(:standard);
>
> print header;
> print start_html('A Simple Example'),
> h1('A Simple Example'),end_html;
> ------- end of example.cgi ---
>
> (note this file works on my Xitami/Windows/Perl setup just fine).
>
> If it does the same thing (window/blank html) then we probably need a
> dump of your environment to figure out what is going wrong ...
>
> On 4/4/06, Richard.Copits at bwc.state.oh.us
> <Richard.Copits at bwc.state.oh.us> wrote:
> >
> > It's a Perl script that creates several directories and also produces
> > output which I want to show up in a browser. When I run it under DOS,
> > the directories get created and it runs and displays the HTML code in
> > the DOS window. When I try to run it in the browser window by using
> > "http://localhost/xitami/cgi-bin/auction.pl" it pops up a dos window,
> > the code sort of flashes by and the dos window closes. It's as though
> > the HTML code somehow never "calls" or gets "piped into" the browser
> so
> > that it runs in the browser. When I run the code on a Unix/Apache
> system
> > on my ISP it works fine. I just can't seem to get the output of the
> PERL
> > program (the HTML code..) to show up in the browser. I'm new at this
> and
> > I think I'm missing a step somewhere with getting it to run on a W2k
> > system... I've read as much as I can find on this problem but nothing
> > seems to address what I need to do. Perl works, the admin console says
> > Xitami is working, but I cant' get the output to show up in my
> > browser....
> >
> >
> >
> > -----Original Message-----
> > From: xitami-bounces at lists.xitami.org
> > [mailto:xitami-bounces at lists.xitami.org] On Behalf Of Francis Turner
> > Sent: Tuesday, April 04, 2006 4:04 PM
> > To: Xitami Users General Discussion
> > Subject: Re: [Xitami] A newbie question....
> >
> > Without a touch more information - e.g.the perl script or critical
> > portions of it - its going to be hard to answer your question.
> >
> > My on;y other suggestion would be to try running one the the CGI.pm
> > example scripts -
> > http://search.cpan.org/src/LDS/CGI.pm-3.17/examples/index.html - and
> > see if it works as it should.
> >
> > Francis
> >
> > On 4/4/06, Richard.Copits at bwc.state.oh.us
> > <Richard.Copits at bwc.state.oh.us> wrote:
> > >
> > > I have just downloaded xitami and gotten it configured - I hope
> > correctly -
> > > on my W2K professional system. I've installed PERL as well. I put a
> > PERL
> > > .PL in c:\xitami\cgi-bin and tried running it by using my IE browser
> > to run
> > > it.
> > >
> > > I'm sure the program runs as it creates three directories like it's
> > supposed
> > > to, but I can't get the HTML to display the web page that it
> produces.
> > Am I
> > > doing something wrong or ???
> > >
> > > Thank you for any suggestions on what I should be looking for/at.
> > >
> > > Portions of this message may be confidential under an exemption to
> > Ohio's
> > > public records law or under a legal privilege. If you have received
> > this
> > > message in error or due to an unauthorized transmission or
> > interception,
> > > please delete all copies from your system without disclosing,
> copying,
> > or
> > > transmitting this message.
> > >
> > > --
> > > Xitami Users Mailing List -- For Xitami support
> > > To unsubscribe:
> > > http://lists.xitami.org/mailman/listinfo/xitami
> > >
> > >
> >
> >
> > --
> > http://www.di2.nu/blog.htm
> > Faber's Fourth Law:
> > Necessity is the mother of strange bedfellows.
> >
> >
> > --
> > Xitami Users Mailing List -- For Xitami support
> > To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
> >
> >
> > Portions of this message may be confidential under an exemption to
> Ohio's public records law or under a legal privilege. If you have
> received this message in error or due to an unauthorized transmission or
> interception, please delete all copies from your system without
> disclosing, copying, or transmitting this message.
> >
> >
> > --
> > Xitami Users Mailing List -- For Xitami support
> > To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
> >
>
>
> --
> http://www.di2.nu/blog.htm
> Faber's Fourth Law:
> Necessity is the mother of strange bedfellows.
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>
>
>
> Portions of this message may be confidential under an exemption to Ohio's public records law or under a legal privilege. If you have received this message in error or due to an unauthorized transmission or interception, please delete all copies from your system without disclosing, copying, or transmitting this message.
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>
--
http://www.di2.nu/blog.htm
Faber's Fourth Law:
Necessity is the mother of strange bedfellows.
More information about the Xitami
mailing list