(job)
Run a shell based job.
Run a shell based job.
Run a shell based job .
def run_shell_job(job):
    '''Run a shell based job.'''

    log("Running shell job.\n")

    # Change into the directory.
    os.chdir(job.expt_dir)

    cmd      = './%s %s' % (job.name, job_file_for(job))
    log("Executing command '%s'\n" % (cmd))

    sh(cmd)
def run_shell_job ( job ) : log ( "Running shell job.\n" ) # Change into the directory. os . chdir ( job . expt_dir ) cmd = './%s %s' % ( job . name , job_file_for ( job ) ) log ( "Executing command '%s'\n" % ( cmd ) ) sh ( cmd )