Hi
I have a script which runs a program “JobName”,
with a run-time parameter (A or B).
I take in the parameter, and add “.job” to it before executing it.
I need to enhance my script to check for the job already running with this parameter, and not to attempt to run it if it is already running.
When it runs, if I run :- ps -eaf | grep JobName
I see whoever whenever …path/JobName A.job
& whoever whenever .path/JobName B.job
if they are both running, which is fine.
How do I also identify the “x.job” ?
Help !
I have a script which runs a program “JobName”,
with a run-time parameter (A or B).
I take in the parameter, and add “.job” to it before executing it.
I need to enhance my script to check for the job already running with this parameter, and not to attempt to run it if it is already running.
When it runs, if I run :- ps -eaf | grep JobName
I see whoever whenever …path/JobName A.job
& whoever whenever .path/JobName B.job
if they are both running, which is fine.
How do I also identify the “x.job” ?
Help !