Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Add timestamps to Unix commands that run at intervals' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Add timestamps to Unix commands that run at intervals
Authored by: Hal Itosis on Jan 22, '10 11:18:59PM
(NOTE: this message probably appears in "code" due to a missing code tag in the previous post by slvrstn ?!)
Rats!!!... in a flurry of copy/paste editing from Terminal, i accidently posted an older version for the second example. (i.e., no need for the x= variable assignment... that part of example 2 should look just like example 1). I.e.,

vm_stat 2 |awk '{ system("printf '%-9s' `date +%T`"); 
printf("%9s %9s %9s %9s\n", $1,$2,$3,$4) }'
Edited on Jan 22, '10 11:25:07PM by Hal Itosis


[ Reply to This | # ]