I have migrated a Perl script running under Linux/Apache that runs (which has no issues) to Windows Server 2008/IIS7. The program calls an external process by the following means:
open($R, "|C:/Progra~1/R/R-2.11.0-x64/bin/R CMD BATCH " . $R_FILE) or die $!;What appears to be happening is that the following lines of code are being executed before the R script finishes executing. I have read some articles on various ways to make code wait but I haven't found a working solution. Not an experienced Perl programmer, I am hoping for some recommendations. I have analysed the http traffic and it appears that there is some kind of timing problem and there are no errors in the server logs.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |