Aclhk Aclhk wrote:
> i am new to writing perl in windows. I would like to achieve the same
> result from the following code:
>
> $pid = fork();
> defined $pid or die "fork($pid)\n";
> if($pid == 0)
> {
> exec("dir");
> }
>
> sleep(10);
> kill("TERM" => $pid);
>
> I would to spawn a process and kill it (including the child process) at
> later time.
>
> Pls advise what code should be in windows environment. someone suggested
> win32::job but i failed to write a success code.
Check out Win32::Process and see if it will do what you need.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs