# Automie Exit Codes

**URL:** <https://www.finalbuilder.com/forums/t/automie-exit-codes/4549>\
**Category:** Discussion\
**Created:** [December 3, 2013, 5:40am UTC](https://www.finalbuilder.com/forums/t/automie-exit-codes/4549 "2013-12-03T05:40:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ipfservicedelivery](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/i/f07891/32.png) [@ipfservicedelivery](https://www.finalbuilder.com/forums/u/ipfservicedelivery)\
**Post date:** [December 3, 2013, 5:40am UTC](https://www.finalbuilder.com/forums/t/automie-exit-codes/4549/1 "2013-12-03T05:40:11Z")

</div>

Hi,

&nbsp;&nbsp;&nbsp;&nbsp; Is it possible to get a project to exit with a different exit code than 1 when the BUILD FAILS?

Brian

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [December 3, 2013, 11:06am UTC](https://www.finalbuilder.com/forums/t/automie-exit-codes/4549/2 "2013-12-03T11:06:26Z")

</div>

Hi Brian,   
  
 The exit codes for Automise are controlled internally, and are known entities. For example an error code of 2 is “Invalid Args”. We could in the future allow for user generated exit codes, however this puts us in a tricky spot when extending the list of known codes.   
  
 Another way of doing this would be to write out an ini file, xml, or JSON (whichever works best in your environment) of the variable values your interested on completion of the script. These could then be read up by another application or power shell script to take action based on that result.

---

<div class="post-metadata">

**Author:** ![ipfservicedelivery](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/i/f07891/32.png) [@ipfservicedelivery](https://www.finalbuilder.com/forums/u/ipfservicedelivery)\
**Post date:** [December 4, 2013, 12:11pm UTC](https://www.finalbuilder.com/forums/t/automie-exit-codes/4549/3 "2013-12-04T12:11:03Z")

</div>

Hi Jason,

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ok Thanks. Would be really useful especially when using with batch scheduling tools such as CA Autosys, BMC Control-M and so on. Hopefully something for inclusion in a lter relaese maybe.

Cheers

Brian
