/Main_Page

::You must have ninja focus to complete your mission::NinjaFocus::

Bash one liners

Views:


A simple way to monitor memory usage of a program. add it to your crontab.

Note the "[m]" in the grep. This stops grep matching itself, pick a letter put brackets round it, ok?

$ (date | tr "\n" " "; ps ax -o vsz,command | grep "exi[m]" | sed -e 's/  */ /g;s/^ *//' | cut -d\  -f 1) >> /tmp/exim-mem-usage.log

Main Menu

Personal tools

Toolbox