Simple C tcp server/client that executes a remote ps command.
Must include the server IP address to connect to. No specified option will result in user option by default.
User by default
ps -u USERNAME -o pid,ppid,%cpu,%mem,args
Username comes from the user running the client.
ps -NT -o pid,ppid,%cpu,%mem,args --sort -%cpu | head
ps -NT -o pid,ppid,%cpu,%mem,args --sort -%mem | head