Re: exit code

2007-06-29 Thread Martin Barth
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" <[EMAIL PROTECTED]> wrote: > And why i windows I get exit value 777? > > On 6/29/07, Martin Barth <[

Re: exit code

2007-06-29 Thread Tatiana Lloret Iglesias
And why i windows I get exit value 777? On 6/29/07, Martin Barth <[EMAIL PROTECTED]> wrote: exit codes are stored in 1 byte. so you can only exit with 2^8 == 256 different values. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl

Re: exit code

2007-06-29 Thread Martin Barth
exit codes are stored in 1 byte. so you can only exit with 2^8 == 256 different values. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: exit code

2007-06-29 Thread Tatiana Lloret Iglesias
Sorry.. but I don't understand what do you mean ... On 6/29/07, Paul Johnson <[EMAIL PROTECTED]> wrote: 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 go

Re: exit code

2007-06-29 Thread Paul Johnson
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 code

2007-06-29 Thread Tatiana Lloret Iglesias
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 th

Re: need to return exit code

2006-07-31 Thread Gregory Machin
out and > continuing ... > > How can I pass a standard exit code 0 = success 1 = fail to the operating > system / calling script. > > Many Thanks > Hello, Hope this is something you are looking for... #!/bin/sh echo "Call Perl Program"; perl pro.pl val=$?; if [[ $val ==

Re: need to return exit code

2006-07-31 Thread JupiterHost.Net
Gregory Machin wrote: Hi Hello, My perl script is called by a bash script, used in a compile / build env. But the bash script is not seeing my script's exit and is timming out and continuing ... How can I pass a standard exit code 0 = success 1 = fail to the operating system / ca

Re: need to return exit code

2006-07-31 Thread Prabu
Gregory Machin wrote: Hi My perl script is called by a bash script, used in a compile / build env. But the bash script is not seeing my script's exit and is timming out and continuing ... How can I pass a standard exit code 0 = success 1 = fail to the operating system / calling script.

need to return exit code

2006-07-31 Thread Gregory Machin
Hi My perl script is called by a bash script, used in a compile / build env. But the bash script is not seeing my script's exit and is timming out and continuing ... How can I pass a standard exit code 0 = success 1 = fail to the operating system / calling script. Many Thanks -- Gregory M