I'm doing a script with the Shell. I need that it only show the number of running processes.
Ex:
echo "There are `command` running processes"
Thnx!
Pd: Sorry the idiom. I'm spanish.
I'm doing a script with the Shell. I need that it only show the number of running processes.
Ex:
echo "There are `command` running processes"
Thnx!
Pd: Sorry the idiom. I'm spanish.
Hi.
I know, I saw your first post. Hola!
ps -ef shows all process and wc summarises, so..
ps -ef | wc -l
might help
echo "There are $(echo $(ps -ef | wc -l)) running processes"
Thank you so much!!!!!
I think that nobody understand me.