Keep It Simple, Stupid | |
PerlMonks |
Opening files for other exes in Windowsby ecuguru (Monk) |
on Aug 22, 2006 at 04:56 UTC ( [id://568763]=perlquestion: print w/replies, xml ) | Need Help?? |
ecuguru has asked for the wisdom of the Perl Monks concerning the following question:
Hey guys, I could really use some help. I've got a desktop application in Perl running on Windows that grabs data and writes it to a formatted file, and opens the file for viewing in its own view program. The problem is that, if the viewer program of the file (notepad, googEarth, etc), isn't already open, the call to open the file never returns home and my program hangs. Im using So if the data viewing program is already open I'm fine and it runs great. If however I open the file and the viewer is not open, Perl will hang at the system or exec calls waiting for the exe to quit. Is there a way to spawn the system call in a separate thread or some other means such that I'm not hanging the program waiting for the user to close the viewing exe? Thanks!
Back to
Seekers of Perl Wisdom
|
|