Job Start Date from Unix
Moderators: chulett, rschirm, roy
Job Start Date from Unix
Is there any way I could get the last ran date for a particular job from the command line? I know DSJobStartDate gives the date, I dont have a clear idea about using it from the comman line. Can you guys please help me with the syntax??
Regards,
ssh023
ssh023
the command "dsjob -jobinfo {project} {job}" will give several lines of output, grep for "Job Start Time"
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Thanks Arnrd and Ray for the replies, I used the mentioned command and I am getting the Last Run Time in the below format if I do a Grep on the output for the Job Start Date
'Last Run Time: Month Day Year hh:mm:ss' (eg Jan 8 2008 00:00:00)
I want JobstartDate in the 'YYYYMMDDhhmmss' format. Is there a way I can achieve this? Please help!!!
'Last Run Time: Month Day Year hh:mm:ss' (eg Jan 8 2008 00:00:00)
I want JobstartDate in the 'YYYYMMDDhhmmss' format. Is there a way I can achieve this? Please help!!!
Regards,
ssh023
ssh023
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can't extract it in that format. But your script can re-arrange the components of what you can extract. All the bits you need are there.
If you need to learn/hire some scripting skills, then so be it.
If you need to learn/hire some scripting skills, then so be it.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.