Hi,
I am testing how OMTF jobs work and I am running jobs defined by following fil
/* ----------------- seu_text_file_reading_b ----------------- */
insert_job: seu_text_file_reading_b job_type: BOX
owner: autosys@hpwaatst
permission:
date_conditions: 0
alarm_if_fail: 1
/* ----------------- seu_text_file_reading_wait_omtf ----------------- */
insert_job: seu_text_file_reading_wait_omtf job_type: OMTF
box_name: seu_text_file_reading_b
machine: seu_mach
owner: autosys@hpwaatst
permission:
date_conditions: 0
alarm_if_fail: 1
encoding: US-ASCII
text_file_name: "/home/autosys/text_file_reading.txt"
text_file_mode: Line
text_file_filter_exists: 1
monitor_mode: WAIT
text_file_filter: error
/* ----------------- seu_text_file_reading_now_omtf ----------------- */
insert_job: seu_text_file_reading_now_omtf job_type: OMTF
box_name: seu_text_file_reading_b
machine: seu_mach
owner: autosys@hpwaatst
permission:
date_conditions: 0
alarm_if_fail: 1
encoding: US-ASCII
text_file_name: "/home/autosys/text_file_reading.txt"
text_file_mode: Line
text_file_filter_exists: 1
monitor_mode: NOW
text_file_filter: error
file has the key word before I run the jobs
cat "/home/autosys/seur/text_file_reading.txt"
hola
error
adios
I would expect both jobs to run ok but seu_text_file_reading_now_omtf ends ok but seu_text_file_reading_wait_omtf keeps running
Why is this happening?
Does monitor mode check for a new entry with the word error?
thanks
José
PS
In fact I tested and in case a new match is done the wait job finished, but I thought it would check first for any occurrence. I misunderstood how monitor woks