I'm trying to run a python script on a SGE cluster that will submit and cancel jobs on its own. I can run the program directly from the terminal, but am not sure how to format a job script that I can qsub to.
I've tried things such as
#!/usr/bin/env python2.7 ... python2.7 /home/andli/KMC/3d/optimization_wrapper.py
and submitted the sh file using
but have gotten the errors such as
sh: g++: command not found Unable to run job: denied: host "compute-1-0.local" is not a submit host Exiting.
I'm new to all of this and am looking for a sample format which I could follow, or some guide that I can read to figure out this submission process.