rgarnett1955 Active Member Licensed User Longtime User Sep 20, 2020 #1 Hi All I am using the jRDC2 - B4J code to serve up various data. I have automated the start-up using Visual Cron which uses program exit codes to raise notifications and logs. I wished to add code to the jrdc handler to enable it to return values to the operating system to flag errors if it crashes or fails to start. i.e. errors provide a non zero exit code. This could be handy for other B4J programs. Is is possible to do this? If so how? Best regards Rob
Hi All I am using the jRDC2 - B4J code to serve up various data. I have automated the start-up using Visual Cron which uses program exit codes to raise notifications and logs. I wished to add code to the jrdc handler to enable it to return values to the operating system to flag errors if it crashes or fails to start. i.e. errors provide a non zero exit code. This could be handy for other B4J programs. Is is possible to do this? If so how? Best regards Rob
Erel B4X founder Staff member Licensed User Longtime User Sep 21, 2020 #2 You can use ExitApplication2 to exit and set the exit code. Upvote 0
rgarnett1955 Active Member Licensed User Longtime User Sep 23, 2020 #3 Hi, Thanks Erel Best regards Rob Upvote 0