[SLUG] "set -x" with timestamps?

From: Eben King (eben01@verizon.net)
Date: Sat Mar 29 2008 - 13:42:00 EST


I have this script that runs once per day. Today (as happens periodically),
I got up to find it had run out of memory at some point and invoked the
OOM-killer. Shouldn't, as I have 2 GB RAM + 3.x GB swap. But anyway, I
have "set -x" send me a log of its doings and nothing looks unusual (but
nothing would). Is there a way to get something like the output of "set -x"
but with timestamps, so I could match it up to syslog and see which process
invoked the OOM-killer? Maybe log it with a unique tag?

-- 
-eben    QebWenE01R@vTerYizUonI.nOetP    royalty.mine.nu:81

Logic is a systematic method of coming to the wrong conclusion with confidence. ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:28:34 EDT