Page 1 of 1

How to find the list of Jobs those have run today (in UNIX)

Posted: Sun Feb 24, 2008 7:47 pm
by sridhar.b
Hello

How to find the list of jobs (in UNIX) those have run today?

Suppose, there are 100 jobs in my project. Out off all the jobs 89 jobs have run today. How to get those list?

Thanks in advance

Posted: Sun Feb 24, 2008 7:59 pm
by ray.wurlod
Welcome aboard.
You need a simple script.
Step 1. dsjob -ljobs projectname
Step 2. Iterate through this list using dsjob -jobinfo projectname jobname to get the start/finish times. Compare these to current date and you have the desired solution.

Posted: Mon Feb 25, 2008 12:19 am
by sridhar.b
ray.wurlod wrote:Welcome aboard.
You need a simple script.
Step 1. dsjob -ljobs projectname
Step 2. Iterate through this list using dsjob -jobinfo projectname jobname to get the start/ ...
Thanks for your reply.
Yes, we can get the start ans end time of the job.
But I need only the list of the jobs those ran today(current day).

Posted: Mon Feb 25, 2008 12:37 am
by chulett
Compare that to "today's date" and build your list.

Posted: Mon Feb 25, 2008 1:16 am
by ray.wurlod
Do consider purchasing premium membership which will let you see the entire posts of premium posters.

All of the revenue from premium memberships is devoted to the hosting and bandwidth charges incurred by DSXchange. So, by taking premium membership you are not only helping yourself, you are also helping to keep DSXchange alive.