Christopher Spears wrote: > Does Perl have the equivalent of ps in Unix?
No. > I've looked in my Programming Perl book, and I could only > find getpgrp, which does the opposit of what I want to > do. Here is a schematic of what I want to accomplish: > > 1) Search ps aux and locate process PROC. > 2) Get PROC's PID. > 3) Use the PID to kill PROC > > Any suggestions? Do you have the pgrep/pkill commands? The killall command? Does your version of ps have the -C switch or the -o switch? John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>