Exit Progress session with return code

Posted by Riverside Software on 28-Sep-2015 05:00

Hi,

Just wondering if there was anything new in the latest releases to send a return code to the shell (in order to use $? to know if execution was successful or not).

Gilles

All Replies

Posted by Martha Lynch on 01-Oct-2015 10:31

Are you asking about the latest 11.x releases?

Posted by Riverside Software on 01-Oct-2015 11:32

Yes, I'm working with 11.x

Posted by Brian K. Maher on 01-Oct-2015 12:00

There isn't an option for this but it certainly would make for a great enhancement request on the ideas section of communities.  I suggest asking that we enhance the QUIT statement to take an optional exit code.

Posted by Riverside Software on 02-Oct-2015 01:53
Posted by gus on 02-Oct-2015 12:12

good suggestion. but note that:

on UNIX and Linux, process exit codes are 8 bit unsigned integers (0 to 255). 0 means success. often scripts just check for 0 or nonzero.

we set the exit code to one of a few internally defined (and poorly documented) values in all our executables.

that means to implement the suggestion, we would have to come with a scheme that fits in with current usage.

-gus

> On Oct 2, 2015, at 11:35 AM, Martha Lynch wrote:

>

> Update from Progress Community [https://community.progress.com/]

>

> Martha Lynch [https://community.progress.com/members/mlynch]

>

> Are you asking about the latest 11.x releases?

>

> View online [https://community.progress.com/community_groups/openedge_general/f/26/p/20422/72612#72612]

>

> You received this notification because you subscribed to the forum. To unsubscribe from only this thread, go here [https://community.progress.com/community_groups/openedge_general/f/26/t/20422/mute].

>

> Flag [https://community.progress.com/community_groups/openedge_general/f/26/p/20422/72612?AbuseContentId=6f932be0-56a5-40dd-b382-19cb016d0e45&AbuseContentTypeId=f586769b-0822-468a-b7f3-a94d480ed9b0&AbuseFlag=true] this post as spam/abuse.

Posted by Riverside Software on 02-Oct-2015 15:34

Even a limited subset of 0..255 would be enough for my use case !

This thread is closed