How do you know spawned process can not be killed? posting the code could
let us help you better.

2009/7/28 Aclhk Aclhk <[email protected]>

> if we use Win32::Process, we could not kill all associated child processes.
>
> --- *2009年7月28日 星期二,Bill Luebkert <[email protected]>* 寫道﹕
>
>
> 寄件人: Bill Luebkert <[email protected]>
> 主題: Re: fork and kill process
> 收件人: "Aclhk Aclhk" <[email protected]>
> 副本(CC): [email protected]
> 日期: 2009年7月28日,星期二,上午9:14
>
> 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.
>
>
> ------------------------------
> Yahoo!香港提供網上安全攻略,教你如何防範黑客!*了解更多* <http://hk.promo.yahoo.com/security/>
> _______________________________________________
> ActivePerl mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to