In OI413 anything like: CALL WINEXEC("OINSIGHT.EXE",1) will work, in OI7 it won't, because, apparently, we can't configure write privileges, so anything that has to write to disk doesn't execute.
We currently use winexec to zip XML data on the server and send them to the client, past the CGI. Therefor, the call to utility("RUNWIN"…) is no alternative, because it will execute only locally, not through OECGI calls.
Any clues or workarounds?
Regards
Wilhelm
Wilhelm,
I am not aware of any changes in the code between OI 4.1.3 and OI 7.0 that should cause such a symptom.
I strongly suspect it has something to do with how your web server is configured.
Pat
Pat,
we are going to take a look at the server configuration. The problem however is, that running OI7 and OI413 on the same server & same settings produces different results.
In the case of the zipping routine: OI413 creates an OS file (USRnnnn.ZIP) with filesize ] 0, while in OI7 the OS file (USRnnnn.ZIP) appears with filesize=0.
Other example: Running CALL WINEXEC("oinsight.exe",1) from within OI413 creates another instance of itself, in OI7 it doesn't.
Regards
Wilhelm
Wilhelm,
Try terminating the string passed to WinExec with a null byte. For example:
CALL WINEXEC("oinsight.exe":\00\ ,1)
Pat
Pat,
a lot of thanks for this null-byte trick.
![]()
Wilhelm