Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to kill a windows process by command name?

by gasho (Beadle)
on Nov 18, 2005 at 19:08 UTC ( #509904=note: print w/replies, xml ) Need Help??


in reply to How to kill a windows process by command name?

@A=`ps -o pid,comm=CMD`; @B=`ps -o pid,comm=CMD -u SYSTEM`; push(@B,@A); @C=grep(/BIBusTKServerMa.*|cogbootstrap.*|java.*|EXCEL.*|DevConsole.*| +cogconfigw.*/,@B); foreach $e(@C){ $z=substr($e,0,5); push(@AllPIDtobeKilled ,$z); } foreach $PID(@AllPIDtobeKilled){ system("kill -9 $PID"); #print "$PID\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://509904]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (1)
As of 2023-04-02 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?