in reply to Re^9: Broken image link when calling CGI from img tag
in thread Broken image link when calling CGI from img tag
I had a further think about the issue and threw in a "sleep" function and as sleep allowed the page to render correctly on first load, I am guessing the issue is that the call to the piece of code that generates the image isn't completing before code execution continues.
The piece of code that generates the image file is done by passing an input file to R:
(This line of code was ported from Linux). I have tried a few various ways to try to make execution wait the image generation to finish but perhaps I am going about it the wrong way because nothing I have tried works or that it's a problem specific to the Windows environment. Do you have any suggestions on where to go from here?open($R, "|C:/Progra~1/R/R-2.11.0-x64/bin/R CMD BATCH " . $R_FILE) or +die $!; close($R);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: Broken image link when calling CGI from img tag
by moritz (Cardinal) on Aug 09, 2010 at 12:32 UTC | |
by lintunen (Novice) on Aug 10, 2010 at 08:37 UTC |