I have extracted job definitions from autosys(like below)
/*******Job_A********/
insert_job: Job_A job_type: c
command: /DBA/scripts/Autosys/dbmonitor.sh
machine: rat1-prod
owner: admin@prod-rat1
Resources: (Resource_A)
/*******Job_B********/
insert_job: Job_B job_type: c
command: /DBA/scripts/Autosys/dbmonitor.sh
machine: rat1-prod
owner: admin@prod-rat1
/*******Job_C********/
insert_job: Job_C job_type: c
command: /DBA/scripts/Autosys/dbmonitor.sh
machine: rat1-prod
owner: admin@prod-rat1
Resources: (Resource_C)
I need to extract job_name, resources fields into csv file using python like
Job_A, Resource_A
Job_B
Job_C, Resource_C
when I tried to do it using python regex I failed to produce required output, since Job_B do not have any resource tagged to it.
or is there any way in autosys to generate above report?