User Tools

Site Tools


osg_tips_and_tricks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

osg_tips_and_tricks [2009/12/13 19:12]
127.0.0.1 external edit
osg_tips_and_tricks [2011/09/10 17:37]
Line 1: Line 1:
-====== OSG Tips and Tricks ====== 
- 
-===== Submitting a Job ===== 
-<code bash> 
-mfenn@engage-submit:​~$ cat script.sh 
-#!/bin/sh 
- 
-echo "​Hello,​ World!"​ 
-mfenn@engage-submit:​~$ globus-job-run osgce.cs.clemson.edu/​jobmanager-fork /bin/sh -c 'echo $OSG_APP'​ 
-/​export/​osg/​app 
-mfenn@engage-submit:​~$ globus-job-run osgce.cs.clemson.edu/​jobmanager-fork /bin/sh -c 'mkdir -p $OSG_APP/​engage/​mfenn'​ 
-mfenn@engage-submit:​~$ export MYDIR=/​export/​osg/​app/​engage/​mfenn 
-mfenn@engage-submit:​~$ globus-url-copy file:///​home/​mfenn/​script.sh gsiftp://​osgce.cs.clemson.edu/​$MYDIR/​script.sh 
-mfenn@engage-submit:​~$ globus-job-run osgce.cs.clemson.edu/​jobmanager-fork $MYDIR/​script.sh 
-GRAM Job failed because the executable file permissions do not allow execution (error code 72) 
-mfenn@engage-submit:​~$ globus-job-run osgce.cs.clemson.edu/​jobmanager-fork /bin/ 
-sh -c 'chmod +x $OSG_APP/​engage/​mfenn/​script.sh'​ 
-mfenn@engage-submit:​~$ globus-job-run osgce.cs.clemson.edu/​jobmanager-condor $MYDIR/​script.sh 
-Hello, World! 
-</​code>​ 
- 
-===== Condor-G Example ===== 
-<code bash> 
-mfenn@engage-submit:​~/​osgce-test$ cat job.submit 
-universe=grid 
-executable=/​bin/​hostname 
-grid_resource=gt2 osgce.cs.clemson.edu/​jobmanager-condor 
-notification=never 
-transfer_executable=false 
-output=out 
-error=err 
-log=job.log 
-queue 
-mfenn@engage-submit:​~/​osgce-test$ condor_submit job.submit 
-Submitting job(s). 
-Logging submit event(s). 
-1 job(s) submitted to cluster 182338. 
-</​code>​ 
- 
-...Some time later... 
- 
-<code bash> 
-mfenn@engage-submit:​~/​osgce-test$ cat out 
-osg004 ​ 
-</​code>​ 
- 
  
osg_tips_and_tricks.txt ยท Last modified: 2011/09/10 17:37 (external edit)