Unsorted Code Snippets

Impromptu shell-fu repository...

Log parsing

TORQUE: find submission and start times for jobs in a queue

A supervisor needs to know queue times for jobs submitted by users to a queue.
Using TORQUE 2.3.5, plain text logs in /var/spool/torque/server_logs; log file names are in the YYYYMMDD form.
Ugly solution
Provide enqueuing and start times for each job in the queue of interest, in a given timeframe (e.g. Oct 1st, 2009 to end of year):