in reply to open browser
THe parent program will not terminate until the TK code finishes AND IE is closed.
Tested on Windows XP with perl, v5.8.0 built for MSWin32-x86-multi-thread.# Start child process defined(my $pid = fork) or die qq(Can't fork: $!\n); if ($pid==0){ #Child process print qq(In Child .. starting \n); # Start IE system '%ProgramFiles%/internet explorer/iexplore.exe','http://cnn.c +om'; print qq(child returns - child quitting\n); exit 0 }; # THis is the parent Process .. do TK stuff here.. print qq(PARENT:$pid doing...\n); sleep 5; print qq(Parent done\n); ## Code will HANG here until Iexplorer is closed....
Earth first! (We'll rob the other planets later)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: open browser
by Anonymous Monk on Jul 15, 2004 at 05:37 UTC | |
|
Re^2: open browser
by Anonymous Monk on Jul 15, 2004 at 05:47 UTC | |
|
Re^2: open browser
by Anonymous Monk on Jul 15, 2004 at 06:05 UTC |