Hey all. Thanks in advance for any help you can give, hopefully this is an easy one. I want to create a loop to run a simple performance monitor like vmstat and record it to a file, but have very limited scripting skills.
Starting with this...
date >> /var/log/perfmon.log
vmstat 3 10 >> /var/log/perfmon.log
I basically want it to sleep for 5 minutes using sleep 300, but how do I start the process again (restart the loop)?
Thanks