M
Marcel Preda
Guest
Hi there,
I have one question about executin from other script:
icfb -nograph -replay my_script.il
Is it possible to get an exit code other then 0(zero) if in
my_script.il is a syntax error , or some other "programming" problem?
In a few words:
- I have a perl script whchi creates on the fly my_script.pl
- I exec my_script.il from that perl script using system("icfb -
nograph -replay my_script.il")
No the problem:
I may have some situations where I get ERROR, but script is running
and in the end the exit code is 0.
E.g., I may have:
- syntax error
- nil involved in arithmetic expressions: "nil + <a_number>"
- access some prop of a nil/unbound var: "nil->some_property"
Is it possible that in case of such errors the script to stop the
execution and to exit with a code different than 0 ?
Thank you,
Marcel
I have one question about executin from other script:
icfb -nograph -replay my_script.il
Is it possible to get an exit code other then 0(zero) if in
my_script.il is a syntax error , or some other "programming" problem?
In a few words:
- I have a perl script whchi creates on the fly my_script.pl
- I exec my_script.il from that perl script using system("icfb -
nograph -replay my_script.il")
No the problem:
I may have some situations where I get ERROR, but script is running
and in the end the exit code is 0.
E.g., I may have:
- syntax error
- nil involved in arithmetic expressions: "nil + <a_number>"
- access some prop of a nil/unbound var: "nil->some_property"
Is it possible that in case of such errors the script to stop the
execution and to exit with a code different than 0 ?
Thank you,
Marcel