Re: Exiting without printing



Daniel Kaplan <NoSPam@xxxxxxxxxx> wrote:

> Hi All,


Hrrmph.


> Can someone direct me to the proper perldoc file which explains the easiest
> way to exit a Perl app?


perldoc -f exit


> I am writing a script that is run by the server once an hour,


"the server" is what kind of server? FTP server? SMTP server?

How is the program initiated? Via a cron job or some such?


> not via a web
> browser.


Oh, it is probably an HTTP server (ie. webserver) then?


> But a simple :
>
> exit (0); //causes Perl app to fail


No it doesn't.

It cause the Perl app to exit with a zero exit code, which indicates
success. Exiting with a non-zero exit code indicates failure.

So, it must be something other than the Perl app that is failing
at this point. Maybe you have not partitioned the problem correctly?


> If I precede it with :
>
> print $q->header();
> print "";
>
> Then everything is ok.


This has much more to do with how your web server is configured
than with Perl.

You have a much better chance of getting help if you ask
where they talk about web server configuration, instead of here.


--
Tad McClellan SGML consulting
tadmc@xxxxxxxxxxxxxx Perl programming
Fort Worth, Texas
.



Relevant Pages

  • Re: windows time slower than 10 mins
    ... SBS server sync with an external time source. ... This newsgroup only focuses on SBS technical issues. ... -tz print the local time zone info and exit. ... frequency determined during synchronization, then exit. ...
    (microsoft.public.windows.server.sbs)
  • Re: Socket Programming Problem
    ... number to the server and server increments the number and sends it back to ... the client. ... exit(EXIT_FAILURE); ... if(bind(sockfd, (struct sockaddr*) &server_str, ...
    (comp.unix.programmer)
  • Re: windows time slower than 10 mins
    ... I have windows 2000 server standard for DC ... -tz print the local time zone info and exit. ... frequency determined during synchronization, then exit. ... PLEASE NOTE the newsgroup SECURE CODE and PASSWORD were ...
    (microsoft.public.windows.server.sbs)
  • Exiting without printing
    ... I am writing a script that is run by the server once an hour, ... exit; //causes Perl app to fail ...
    (comp.lang.perl.misc)
  • Re: Learnign select()
    ... sends some text to server and then server sends back the same text to ... client and then client prints it onto the screen. ... int main ... exit(EXIT_FAILURE); ...
    (comp.unix.programmer)