def run_shell_job(job):
 log('Running shell job.\n')
 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' ) os . chdir ( job . expt_dir ) cmd = ( './%s %s' % ( job . name , job_file_for ( job ) ) ) log ( ( "Executing command '%s'\n" % cmd ) ) sh ( cmd )
run a shell based job .