Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-10-2011, 01:09 PM   #1
Registered: Feb 2010
Location: A Smidge South O' Boston
Distribution: Debian
Posts: 41

Rep: Reputation: 15
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.
Old 05-10-2011, 06:33 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to show the list of stopped and background jobs fakhrul Linux - General 6 01-09-2012 09:58 AM
How to list command history from yesterday? thomas2004ch Linux - Software 2 02-01-2011 07:07 AM
'E:Malformed line 54 in source list /etc/apt/sources.list (dist parse), E:The list of Linux - Desktop 1 11-17-2010 08:17 AM
Loosing jobs list after quitting terminal alpha_lt Linux - Newbie 4 01-30-2010 11:53 AM
Yesterday already? david_ross LQ Suggestions & Feedback 12 04-13-2003 02:59 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration