pulled script from: http://web.njit.edu/topics/HPC/basement/sge/SGE.html