On Wed, Apr 09, 2003 at 10:01:35AM -0500, Brady Hegberg wrote:
> I'm looking for a more useful ps command for when you just want to find
> a process to kill it.  All I really need is the command and the PID so I
> tried this:
> 
> ps ahx --format=%c%p | sort -u
> 
> But that cuts off the command after only 16 characters and it doesn't
> show the path the process was run from.  Any pointers?

Have you tried pkill or pgrep?  They might directly do what you
need.

-- 
Jim Crumley                  |Twin Cities Linux Users Group Mailing List (TCLUG)
crumley at fields.space.umn.edu |Minneapolis/St. Paul, Minnesota 
Ruthless Debian Zealot       |http://www.mn-linux.org/ 
Never laugh at live dragons  |Dmitry's free,Jon's next? http://faircopyright.org

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list