Watch the output of the ps command and log processes exceeding memory or cpu thresholds to a file, and optionally alert.