Home > Archive > PERL Beginners > June 2007 > exit code
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Tatiana Lloret Iglesias 2007-06-29, 7:58 am |
| Hi all,
when I execute my perl script in my local machine and I get to a controlled
error situation i've got as exit value 777
if(!$test){
$failed_times =$failed_times +1;
if($failed_times ==3)
{
exit(777);
}
sleep 15;
}# if $test
but when i execute the same script with the same controlled error situation
I've got as exit value 9 which seems a generic error code
Any idea ?
Thanks!
T
| |
| Paul Johnson 2007-06-29, 7:58 am |
| On Fri, Jun 29, 2007 at 11:08:19AM +0200, Tatiana Lloret Iglesias wrote:
> Hi all,
>
> when I execute my perl script in my local machine and I get to a controlled
> error situation i've got as exit value 777
>
> if(!$test){
> $failed_times =$failed_times +1;
>
> if($failed_times ==3)
> {
> exit(777);
> }
> sleep 15;
> }# if $test
>
> but when i execute the same script with the same controlled error situation
> I've got as exit value 9 which seems a generic error code
>
> Any idea ?
Exit statuses are stored in eight bits.
> Thanks!
You're welcome.
--
Paul Johnson - paul@pjcj.net
http://www.pjcj.net
| |
| Tatiana Lloret Iglesias 2007-06-29, 7:58 am |
| Sorry.. but I don't understand what do you mean ...
On 6/29/07, Paul Johnson <paul@pjcj.net> wrote:
>
> On Fri, Jun 29, 2007 at 11:08:19AM +0200, Tatiana Lloret Iglesias wrote:
>
> controlled
> situation
>
> Exit statuses are stored in eight bits.
>
>
> You're welcome.
>
> --
> Paul Johnson - paul@pjcj.net
> http://www.pjcj.net
>
| |
| Martin Barth 2007-06-29, 7:58 am |
| exit codes are stored in 1 byte. so you can only exit with
2^8 == 256 different values.
| |
| Tatiana Lloret Iglesias 2007-06-29, 7:58 am |
| And why i windows I get exit value 777?
On 6/29/07, Martin Barth <martin@senfdax.de> wrote:
>
> exit codes are stored in 1 byte. so you can only exit with
> 2^8 == 256 different values.
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>
>
| |
| Martin Barth 2007-06-29, 9:58 pm |
| I just googled a bit:
http://www.hiteksoftware.com/knowledge/articles/049.htm
it seems that windows has more exit codes than linux.
On Fri, 29 Jun 2007 13:15:18 +0200
"Tatiana Lloret Iglesias" <tlloreti@gmail.com> wrote:
[color=darkred]
> And why i windows I get exit value 777?
>
> On 6/29/07, Martin Barth <martin@senfdax.de> wrote:
|
|
|
|
|