Find process information by name.
Is there a way to find out information about a process based on the command used to run it?
Ideally I would like to get processes ID %CPU and memory usage back. I have written a short shell script which does this but I wonderd was there a command that did this. Here's my shell script Code:
#!/bin/bash Thanks in advance :) |
<plug> I wrote a little script a while back - http://killboy.yourdevlab.com/scripts/processinfo.pl
You could do: Code:
pgrep <name> | processinfo.pl |
All times are GMT -5. The time now is 12:33 AM. |