Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while :
- do
- date '+%A %W %Y %X' >> ~/Desktop/monitor.txt
- ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head >> ~/Desktop/monitor.txt
- echo "#################### NEW BLOCK ####################" >> ~/Desktop/monitor.txt
- sleep 60
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement