I hope I phrase this question correctly.
I want to write pidstat into a perl script so that when a user runs it he/she is asked for a PID the script then runs pidstat with that specific PID and returns the result? I know how to request the user for a pid and then set the script to read the STDIN, but i'm stuck on how to call on pidstat in perl!! Driving me nuts! Please help and be gentle I'm only little!
Read
perldoc -f open
, and do something like:}