jbeckley <[EMAIL PROTECTED]> writes:

> I have quick question about the .ignore-error command.  When I run a
> script and it fails, this is the message i receive:
> 
> vscan.bat failed, status 12.0 at z:\bin\todo.pl line 245
> z:\bin\todo.pl exiting with status 2; halting...
> 
> How do I keep this message from stopping the unattended.  Do I need to
> put ".ignore-error 12.0 vscan.bat" as the command to run?  Thanks for
> your help.

Just ".ignore-error 12 vscan.bat".

Perl's exit status variable ($?) is an oddity.  Zero indicates normal
termination, which is not so odd.  Non-zero indicates abnormal
termination as a two-byte value with the high byte representing the
exit status and the low byte representing termination by a signal.  I
am not sure the low byte is ever non-zero for Windows Perl.

Anyway, todo.pl prints the exit status as two bytes separated by a
period; e.g., 12.0.  It would be very strange for the second byte to
be non-zero, but I don't believe in throwing away information
(especially "impossible" results), so you get to see both.

Perhaps "12 (0)" would be more natural to read...  Yes, I think so.
Fixed in next release.

 - Pat


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to