ecuguru has asked for the wisdom of the Perl Monks concerning the following question:
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?print "Opening file: $File\r\n"; my $returnValue = system($File); # my $returnValue = exec($File); print "Done. ReturnValue $returnValue\r\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Opening files for other exes in Windows
by Corion (Patriarch) on Aug 22, 2006 at 06:31 UTC | |
by ecuguru (Monk) on Aug 23, 2006 at 07:57 UTC | |
|
Re: Opening files for other exes in Windows
by Roger (Parson) on Aug 22, 2006 at 05:59 UTC | |
|
Re: Opening files for other exes in Windows
by cdarke (Prior) on Aug 22, 2006 at 06:41 UTC | |
|
Re: Opening files for other exes in Windows
by Mandrake (Chaplain) on Aug 22, 2006 at 06:16 UTC |