----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, September 28, 2005 5:00 PM
Subject: Wnn32::Procecc question


> Hi All!
> I Have 2 perl scripts
> first script calls Win32::Process::Create
> and exits
> in second script I want to kill
> process  created in first script
> But how I can pass $procobj to second
> script to kill it like  <$procobj->Kill($exi)>
> Or how can I in first script get $pid of process from $procobj?

my $pid =  $procobj->GetProcessID();

Then pass that value on to second script via @ARGV, and kill the process by
calling Win32::Process::KillProcess($pid, $exitcode).

Cheers,
Rob

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to