Friday, October 31, 2008

Log memory used by a process over time

Messy script. This logs memory usage by the process called "swift" to the file called "log":

while true;do ps -euf | grep "./swift --align" | grep -v grep | awk '{print $6}' >> log;sleep 5; done

No comments: