in reply to Show a msgbox and do not wait (Win32)
What is wrong with fork?
use Win32; my $pid = fork(); die "Could not fork Fork!" unless defined $pid; if ( $pid ) { # Parent makes whoopee while kids are away do {print $come_to_momma_honey++ . "\n"; sleep 1 } while 1; } else { # kid so do the MsgBox Win32::MsgBox("My parent's are getting up to mischief while I am w +aiting for you to press OK!"); die "You killed me. Your own flesh and blood!\n"; }
I am on Win2K and this works fine. The count goes on while the message box waits. Parent continues after you press OK while the kid exits. See some other fork examples at My children are driving me crazy Forked off! and Forked up with a bit of explanation.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Show a msgbox and do not wait (Win32)
by Jenda (Abbot) on Feb 19, 2003 at 00:36 UTC | |
by tachyon (Chancellor) on Feb 19, 2003 at 00:49 UTC | |
by helgi (Hermit) on Feb 19, 2003 at 11:47 UTC |