insert_job: sample_ls job_type: c
command: ls -l
machine: unixboxa
owner: user123@unixboxa
permission: wx,mx,we,me
description: "runs an ls -l as user123"
job_terminator: 1
alarm_if_fail: 1
i just need to change the machine name , alarm if fails and owner id thrugh unix shell scripting can any one help me on this ..
Just need to kick off the unix script and it need to prompt me with instance id , owner id , alarm if fail and it should ask for user entry
insert_job: sample_ls job_type: c
command: ls -l
machine: unixboxa
owner: user123@unixboxa
permission: wx,mx,we,me
description: "runs an ls -l as user123"
job_terminator: 1
alarm_if_fail: 1
/* ----------------- jil.jil ----------------- */
insert_job: sample_ls job_type: c
command: ls -l
machine: unixboxa
owner: user123@cous123
permission: wx,mx,we,me
description: "runs an ls -l as user123"
job_terminator: 1
alarm_if_fail: 1
i need to search for a string "cous123" once i found this thing , i need to remove the lines which are example , naturally it would be 6 lines above it and 4 lines below it . So my output should be only like this ::
insert_job: sample_ls job_type: c
command: ls -l
machine: unixboxa
owner: user123@unixboxa
permission: wx,mx,we,me
description: "runs an ls -l as user123"
job_terminator: 1
alarm_if_fail: 1