#!/bin/bash

while :; do uptime ; vtop -cb -n 2 -d 5 -S | awk '/^Tasks:/ { b++; } { if (b>1) { print } }' | head -20 ; echo ; done | tee -a /var/log/vtop.log
