I don't have a windows machine handy right now, but what about:
my $status = system('iexplore');
thor
Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come
| [reply] [d/l] |
To finish what Thor just said:
* update *
Changed qx to sytsem after thor's comment. It can indeed be done in more ways, but then again, that's Perl :-)
use strict;
my $status = system('C:/PROGRA~1/INTERN~1/IEXPLORE.EXE');
print "Done with ie! after system\n";
my $ieStdOut= qx('C:/PROGRA~1/INTERN~1/IEXPLORE.EXE');
print "Done with ie! after qx\n";
my $ieStdOut= `C:/PROGRA~1/INTERN~1/IEXPLORE.EXE`;
print "Done with ie! after backticks\n";
As soon as ie quits, the next line of code is executed.
"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.
| [reply] [d/l] |
qx and system are not equivalent; qx and backticks are, though. In your code snippet, the (inappropriately named) $status will contain whatever is output to standard out by internet explorer. Other than that, though, it should work. :)
thor
Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come
| [reply] |
In you still wish to use Win32::Process, use the Wait method:
Win32::Process::Create($ie, ...)
or die("...");
$ie->Wait(INFINITE);
| [reply] [d/l] [select] |
What code have you tried?
Perl is Huffman encoded by design.
| [reply] |
Trouble is that I would like to start explorer with url like parameter no iexplore with parameter.
The question is:
How to wait infinite for sub proccess or for process created by proccess? | [reply] |