-   Linux - General (
-   -   List Jobs From Yesterday (

Norwood 05-10-2011 01:09 PM

List Jobs From Yesterday
Is it possible to list all jobs and their pids from a certain time frame? For instance if I needed to see all completed jobs from yesterday how would I do this?

I've tried jobs -n but that was messed up because I had typed jobs right before that.

kbp 05-10-2011 06:33 PM

No, if you want to track the jobs you'll need to configure a script wrapper to log the start/finish time as well as any output.




echo "Start $JOB: $(date <pick-your-formatting>)" >> $LOG
$JOB >> $LOG 2>&1
echo "End $JOB: $(date <pick-your-formatting>)" >> $LOG


All times are GMT -5. The time now is 02:51 PM.