#!/bin/bash while true do echo $(date) $(ps aux | egrep 'python.*[p]'erf | awk ' { print $5, $6, $11, $12 }') sleep 60 done