old_contents: template_string = '''#!/bin/bash
  
  #PBS -S /bin/bash
  #PBS -N ${jobname}
  #PBS -m n
  #PBS -k eo
  #PBS -l walltime=$walltime
  #PBS -l nodes=${nodes_per_block}:ppn=${tasks_per_node}
  #PBS -o ${submit_script_dir}/${jobname}.submit.stdout
  #PBS -e ${submit_script_dir}/${jobname}.submit.stderr
  ${scheduler_options}
  
  ${worker_init}
  
  export JOBNAME="${jobname}"
  
  ${user_script}
  
  '''
  
new_contents: template_string = '''#!/bin/bash
  
  #PBS -S /bin/bash
  #PBS -N ${jobname}
  #PBS -m n
  #PBS -l walltime=$walltime
  #PBS -l nodes=${nodes_per_block}:ppn=${tasks_per_node}
  #PBS -o ${submit_script_dir}/${jobname}.submit.stdout
  #PBS -e ${submit_script_dir}/${jobname}.submit.stderr
  ${scheduler_options}
  
  ${worker_init}
  
  export JOBNAME="${jobname}"
  
  ${user_script}
  
  '''
  
subject: Remove line which was preventing stdout redirect