Hi,
I'm trying to run some scripting in Windows. I'm using an instance of the IRISHealth community.
I'm just trying to run a simple sequence of commands so I can run irissession in a non-interactive mode, like:
irissession.exe IRISHEALTH -U "%SYS" < "myprogram.iris"
The contents of my program.iris are, for instance, these ones, to run an online backup:
set $namespace="%SYS"
set cbk = "C:\Test1.cbk"
set log = "C:\Test1.log"
w $$BACKUP^DBACK("","F","MyBackup",cbk,"Y",log,"NOINPUT","Y","Y", 1000, "Test1")
HALT
The execution starts, but then gets completely hung, I see infinitely:
%SYS>
%SYS>
```
Which makes this completely unusable. I can see in the log that the backup is actually completed, but I need to kill the process, close the session, and sometimes even the testing VM gets completely frozen.
By the way, the same procedure using a Docker instance from Ubuntu works without issue.
As a result, the problem seems to lie in something about the input/output behavior with this irissession binary in Windows, but I'm not able to solve it after trying many different approaches (running a single line routine, creating a class and loading it, etc).
Is it possible to run something like this unattended in Windows?
Thanks!