We would like to create a script that will test if there is an execute license available before releasing a job from our job queue.
Typically any connection info is encapsulated within the data that is read by the submitted job thus allowing it to repeat the series of tests against multiple SUTs. However this also means that all jobs are initially started from the machine that EggPlant is installed on.
So, if we have 5 execute licenses we would like to be able to release the first 5 jobs from the job queue then not release another until one of those original 5 has completed.
Our plan was to create a dummy script that updated a file, submit it using the shell command and if the file was updated then submit the real job. Loop round and repeat the process.
But foiled! The shell command seems to wait until the job has completed before returning to the initiating script. This is OK for the dummy script but not for the real script as obviously we can only run one job at a time.
Tried terminating the shell command with & to fork the process and then ‘exit’ to quit the shell but it still runs serially.
Is there any other method in SenseTalk or a shell script to just submit a job then immediatly return to the calling script without waiting for the process to end so that other processes can be created??