Count Using a check_license script

There are two ways to use a check_license shell script to check license availability and acquire a license if one is available:

It is possible that the license becomes unavailable between the time the check_license script is run, and when the job is actually run. To handle this case, configure a queue so that jobs in this queue are requeued if they exit with values indicating that the license was not successfully obtained.