Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: using perl to stop processes on windowsby maa (Pilgrim) |
on Mar 03, 2004 at 19:40 UTC ( [id://333662]=note: print w/replies, xml ) | Need Help?? |
Hi, pskill & psexec are fine utilities indeed, but to answer your question, "Yes, Perl can kill processes on a remote Win32 workstation." Perl will need the help of WMI, though! This should be installed by default on W98 - XP machines. If you have the NTReskit, check out the kill.vbs script which does exactly this. If you want to convert that to Perl using Win32::OLE then why not post the results here afterwards :-) You should also check out Dave Roth's site and nodes like How to Start a Process in a Remote Win32 Machine using Perl and WMI for other examples of getting process listings under Win32. HTH - Mark
In Section
Seekers of Perl Wisdom
|
|