I have written a daemon that polls a JMS queue and kicks off jobs using the 'dsjob' command.
It does this and detaches (i.e. it does not use the "-wait" nor the "-jobstatus" flags) - so the job will run in the background.
I now realize that there are going to be times when multiple jobs need to be run, when i try to start one job straight after another using 'dsjob' i get:
"Error running job
Status code = -2 DSJE_BADSTATE"
I have set up the job to be "Multiple Instance" in the Job Properties.
Am I doing something wrong, or is this not possible?
![Smile :)](./images/smilies/icon_smile.gif)
Thanks in advance.
Jon