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. 



      Yahoo!香港提供網上安全攻略,教你如何防範黑客! 請前往 http://hk.promo.yahoo.com/security/ 了解更多!
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to