Re: Shutdown function
- From: PawelRog <ppp.pawelrog@xxxxxxxxx>
- Date: Mon, 22 Dec 2008 11:31:51 -0800 (PST)
Yes I want to use it in CLI, but I want only to catch exit status in
sutdown function. Any other idea is not acceptable. I cannot rebuild
code to use return statements.
There is one more thing that i'd like to ask. Lets tell that there is
some Parse error in script (error_handler doesn't catch it) how to get
know in shutdown function that this error occured.
I just want to know if script ends correctly or not (if there were
some critical errors or if there were some exits with codes different
then 0)
Anyway, thanks for Your reply.
On 22 Gru, 15:50, FutureShock <futuresho...@xxxxxxx> wrote:
phenom...@xxxxxxxxx wrote:
Is it possible to get exit status in shutdown function. For example if
I call exit(1), How to get in shutdown functino that exit status was 1.
I think only if you are using a command line access because the script
will die on the server so there will be no means of accessing that
'with' the script.
You can however use a string "exit("there has been an error");, this is
output by the server and NOT the script
But be careful at what you output, I don't think you can turn off this
output. So whatever you put in as a string will output no matter your
error settings. Someone correct me on this if I am wrong.
You may want to review your code logic and maybe use a different
capture method such as "return 'some_value'";
Just a thought though.
Scotty
.
- References:
- Shutdown function
- From: phenomen1
- Re: Shutdown function
- From: FutureShock
- Shutdown function
- Prev by Date: Re: How to return a reference
- Next by Date: Re: We are looking for boys and girls to have fun, orgies, trios, and whatever. If you want a do it, don’t be shy and contact. That’s going to be great!
- Previous by thread: Re: Shutdown function
- Next by thread: How to get text from PDF?
- Index(es):
Relevant Pages
|