Lutz Vogt · Sep 21, 2016 go to post

Thanks very much Eduard, using $ZF(-1) or $ZF(-2) works well from the terminal  but it does not work  from a csp-page although we set the %System_CallOut ressource.

s x = $ZF(-2,"program.exe")

returns "0", but program.exe does nothing. Seems to be a problem of the OS ( we use Windwos server)? What do you think any idea?

Best thanks for an hint.- Lutz.

Lutz Vogt · Sep 20, 2016 go to post

Dmitry thank you very much for your prompt answer.  Sorry I was on time pressure yesterday. However some more details to that what we plan. We developed a model systems representing the insulin-glucose metabolism in humans in form of a coupled differential equation. The model needs to be setup to the individual situation of each patient which we call identification. For this purpose we developed in Delphi a program which performs this identification automatically. Data needed for this, the program gets from a Caché instance by ODBC and the results which are model parameters will be stored to this Caché instance. This part works well if we start the program by $ZF(-2,"program.exe") from the Caché terminal. Further on we want to integrate this automatically identification into a CSP application where a patient enters or uploads e.g. their glucose measurements. If all data are completed the CSP application should start the identification program again by $ZF(-2...). This does not work at the moment since no results will be stored. However if I check the status it returns "0" means the child process was created succesfully, but thats all. If I test this with

w $ZF(-2,"notepad.exe") its the same . From Caché terminal returns status 0 and opens Notepad, from CSP-page its returns status 0 and not opens Notepad or not execute our identification program. Finaly this program does not need any interaction, parameters (e.g. which patient data) will be handed over with the program start. Hope this gives you more insight to our problem.

I'm very grateful for any help. Best regards Lutz.

Lutz Vogt · Sep 20, 2016 go to post

OK Dmitry, this could be the solution. Start the identification program from the windows console (cmd) works well (results of the identification were stored to the Caché instance. However the identification program outputs some messages to the windows console and this could be the reason for not working from CSP-page as you describe. I will forward this to the Delphi developer and will return with the result, hopefully succesful. Thank you very, very much for the moment.

Lutz Vogt.

Lutz Vogt · Sep 21, 2016 go to post

Finally our experiences with $ZF(-2): It works perfect, also in our case (status information was "0" for a successful created child process). Our application works also well. The only lack was the configuration of the ODBC DSN which was set to USER correct but the SYSTEM DSN was missing. Therefore the results of the application run were not stored to Caché. Thanks again to all contributions. - Lutz.

Lutz Vogt · Apr 7, 2021 go to post

Hi Stefan,

a really good improvement for working with JSON import and export. We use this especially in connection with REST services. Many, many thanks

Lutz.

Lutz Vogt · Sep 6, 2021 go to post

Hi Danny,

thank very very much. That makes sense, and it works of course very fine. Although it seems to be simple it helps me to understand better the concept. Good to have this community. -  Best Lutz.