I played with grep and ps looking for a way to monitor services
for a little script I wrote to monitor cups
and I found another way of going at this
I tried to compile PSG but it failed but I liked the simple idea of it
so I found an alias instead that simulates it
Code: Select all
alias psg='ps auxw | grep -v "grep -i" | grep -i --color'
then you just type
Code: Select all
psg cupsd
--------------------------------------
so I guess if wget was running
Code: Select all
psg wget
psg wget
root 13181 0.5 0.1 3276 1336 pts/2 S+ 20:27 0:00 wget http://puppy2.org/slaxer/bluefish-1.0.7-i486-slxr.pet
#
add the filtering formatting you prefer
[/code]
nice and easy
Joe