There is still no example from config and log file that can be brought to relation so it would make easier to understand. Maybe you fix that.
Anyway, assuming this line from your config:
Rockport is the application name, PDWRCK01 the starting job, PDWRCK03 the ending job, and 22:00 the estimated starting time.
So 1 job has 2 different names for a starting entry and for an ending entry? Is that always like that?
Despite your explanation from the config file I assume from the logs, that there is 1 jobname and for it there is a "JOBINIT" entry and a "JOBTERM" to mark the end or is that wrong? Or does it really change it's jobname for the start and the end entry and you can only know what belongs together by your config?
So what you need is the "JOBINIT" string from the log, for the particular entry in your config and compare the date from the config with the date from the log, correct?
Hi,
Sorry for the delay in replying.
Yes, There will be many jobs in a application , and I am placing the first job and the last job of the application in my config file. The time mentioned in the config file is the usual start time.
So, from the log I am trying to fetch the start time of the first job and end time of the last job(Jobterm). There will be an entry in the log only when the job completes. So for every entry, Jobinit and jobterm will be there.
Now my main problem is , I need to check if the times are for the current day or not.
Suppose if the time from the log is 07/10/2012 13.00.00 and I am looking for the date 07/11/2012, then it means that the job has not yet started for the day and the status should be shown as Not-started. For this I need to do date subtraction.
Hi All,
How do i find all the files between two times.
Eg: 26 may 2014 06:00 to 26 may 2014 14:00
mmin and mtime gives for a specific period. we receive hundreds of files input directories and i need to find how many files are received between given specific datetime.
Thanks. (2 Replies)
Hey Guys,
I have looked for a solution throughout the forum for my particular question, but I cant find one. So I'm sorry if I overlooked it. I need to be able to 48 add hours to a particular DateTime string.
I have a variable named $startTime
I would like to be able to take that... (1 Reply)
Hi. I'm hoping there is a simple method where I'm able to generate a datetime string that looks like this (yyyymmddhhmm):
201106280830
The tricky part would be that I need this string to be today's datetime minus 1 year.
Is there anyway to do this? (3 Replies)
Hi,
I'm trying to find processing time of my script. Please can someone give me the commands to get the start/end time in "dd-mm-yyyy hh:mm:ss" and the differnce in seconds.
Thanks! (5 Replies)
Suppose I have a mysql table consisting of measurements taken during irregular intervals as follows:
CREATE TABLE data (datetime DATETIME, value INTEGER);
mysql> SELECT datetime, value FROM data;
+---------------------+---------+
| datetime | value |... (2 Replies)
Hi,
I'm using awk in HP-UX machine which does not support systime(), strftime(). So to get the date time I was using :
seq 1 100000 | awk ' "date +%Y%m%d%H%M%s" | getline curtime; print curtime }'
However the above code gets the date only once, next time it is not updated. For... (2 Replies)
Hi,
I'm trying to use datetime.pm function in Perl. I do not have in the library. Is there a way to get it and put it into library?
Thanks,
George. (1 Reply)