This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sge_tricks [2012/12/19 11:07] fowlkes created |
sge_tricks [2012/12/20 13:10] (current) gghiasi |
||
---|---|---|---|
Line 21: | Line 21: | ||
''export XAPPLRESDIR=/pkg/matlab/7.14_r2012a/X11/app-defaults/'' | ''export XAPPLRESDIR=/pkg/matlab/7.14_r2012a/X11/app-defaults/'' | ||
- | ''./myfunction $1 $2'' | + | ''ABSPATH/myfunction $1 $2 > $3'' |
---- | ---- | ||
- | qsub -q ttn.q myfunction hello world | ||
+ | module load sge | ||
+ | qsub -q ttn.q ABSPATH/myfunction.sh hello world ABSPATH/output.txt | ||
+ | |||
+ | Where ABSPATH should be replaced with the absolute path of each file (e.g. /home/fowlkes). Absolute paths should be used everywhere since qsub doesn't run in the same cwd. |