LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-10-2011, 01:09 PM   #1
Norwood
Member
 
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
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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.

eg.

Code:
LOG=/var/log/myjobs.log
JOB=$1

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


Reply



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 vsssuccess@gmail.com 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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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