Reputation: 579
Something is wrong with my code but I'm not sure why it's wrong!
import os
os.system('cp $HOME/Documents/MATLAB/processFates.m $HOME/Documents/Outputs/test2')
write = open('matlabEx.submit','w+')
write.write("""
#$ -N matlab_example
#$ -o job.out
#$ -e job.error
#$ -cwd
#$ -S /bin/bash
#$ -pe orte 2
#$ -V
matlab -nodesktop -nosplash -r \"fwhm = processFates('FWHM',200)\"
"""
write.close()
os.system('qsub matlabEx.submit')
It's not writing the file. What is wrong?
Upvotes: 0
Views: 49