Hi All,
I have a question.
I want to run more instance of same job in parallel from within a script: I have a loop in which I invoke jobs with dsjob and without option "-wait" and "-jobstatus".
I want that jobs completed before script termination, but I don't know how to verify if job instance terminated.
I though to use wait command but it is not appropriate.
Thanks in advance
Invoke more jobs from command line without waiting
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I changed perspective for this task.
Instead of wait for a dsjob launch to complete, I created a parametric shell script that launch dsjob command.
I exec this script from another, and I apply wait command.
It seems more clean and with minus code to implement for every check.
What do you think about this solution?
Instead of wait for a dsjob launch to complete, I created a parametric shell script that launch dsjob command.
I exec this script from another, and I apply wait command.
It seems more clean and with minus code to implement for every check.
What do you think about this solution?