I found two ways, both of which are OS-specific. One is this perl: http://www.roth.net/perl/scripts/scripts.asp?ProcList.pl
Another is this command line tool: http://www.sysinternals.com/ntw2k/freeware/handle.shtml In a way I like the CLT better, it gives me less OS-specific code with the expense of an installation (of something that I think should come with windows) and an exec. But there has to be a better way - someone must have written a module or something that incapsulates the process list and potentially even the killing of a process. On a MicroSoft site there was something about doing this with vbscript, but I didn't even want to look at that. --- John West <[EMAIL PROTECTED]> wrote: > I am stuck on windows working with a process that > runs > as a service. There's a bug in the process (vendor > code) and it doesn't show up in the output of net > start, so net stop can't stop it. > > I need to have a script that kills this process > using > kill PID, but I am not aware of any command line > tool > I can grep the output of or Perl routine I can call > to > get the process ID of a process by a given name so > that I can kill it. > > Any ideas? I looked at Win32::Process but I think > that can only start new processes, not give me > information about existing processes. > > Thanks & regards, > > -John > > __________________________________________________ > Do You Yahoo!? > LAUNCH - Your Yahoo! Music Experience > http://launch.yahoo.com > > -- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]