I was wondering what kind of system commands I would use to write a program that will just show me details on current running programs + status example process id, user, process, state, cpu, memory used, virtual memory size, resident set size and major page faults if any
Unfortunately, you forgot to tell us what is the system you are working on...
Update: read this for some suggestions
Ciao!
--bronto
The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
--John M. Dlugosz