Reputation: 917
Just as title mentioned, How can I oversee a process using ps with periodicity scanning just like command "top", thanks first:)
Upvotes: 1
Views: 4886
Reputation: 501
If the process you want to see is PID 4815 and you want it to update every 2 seconds you could do an infinite while loop.
while true; do ps 4815; sleep 2; clear; done
Upvotes: 5