splitting this off from the main command
Command that hpcrunner.pl execute_job/execute_array uses
If there is a version add it
Submit the job to the scheduler.
Inputs: self, submit_command (sbatch, qsub, etc)
Returns: exitcode, stdout, stderr
This subroutine was just about 100% from the following perlmonks discussions. All that I did was add in some logging.
This is probably overkill - but occasionally the scheduler takes longer than we think to exit