I have a problem with lua scripts of Orthanc.
What i'm trying to do is to monitor orthanc, each time a study is stable, export it as zip and run an external software that will handle processing on this zip (unzip and merge with other files etc).
I have no problem in the first part, I can monitor the stable study and get proper ZIP using a lua script.
My problem is when I want to call the external program.
I used that command :
os.execute ('java -jar C:\\Users\\salim\\Downloads\\OrthancEditor.jar')
I see a JVM being initialized but that stops the Lua scripts (i made a print line after the os.execute that is never reached) and even if the java program is inialized it didn't show it's GUI.
I even tried to run a bat script with just a echo function in it. Same problem I don't see the console showing.
I probably miss something ? how I can run an launch an external app in a Lua script ? Is there something special about Lua scripts in Orthanc ?
Best regards,
Salim