Personal tools
You are here: Home Local Grid Users Carl's Full Example of a Grid Job
Document Actions

Carl's Full Example of a Grid Job

by admin last modified 2006-05-05 11:03

A full example of a grid job which includes transferring executables and a condor submit script.

I wrote a simple script to submit a junk job that I have for red.  This shell script took my executable and data, shipped it over and submitted the job to red.  (It should be noted that sending the executable over may not be needed in this instance, but I know this script works with my stuff.)

If you have a simple job (one local data file, one executable file), then you can change the environment variables below and run the script from your UI.
#!/bin/sh
# YOU MUST HAVE A VALID GRID CERTIFICATE LOADED FOR THIS TO WORK.
# YOU MAY HAVE TO SETUP THE OSG SOFTWARE STACK
#

export local_data_file=/home/clundst/geant_data/1000nmBC_.05cmSil.out
export local_exe=/home/clundst/strip_E_nopaw.prl
export remote_data_file=/opt/data/clundst/file.out
export remote_exe=/opt/osg/app/clundst/runit.pl


globus-url-copy file://$(echo $local_data_file) gsiftp://red.unl.edu$(echo $remo
te_data_file)
globus-url-copy file://$(echo $local_exe) gsiftp://red.unl.edu/$(echo $remote_ex
e)

globus-job-run red.unl.edu /bin/chmod 777 $(echo $remote_exe)

cat <<EOF> submit_file
############ condor-g submit file #####################
universe = globus
globusscheduler = red.unl.edu/jobmanager-pbs
executable = $(echo $remote_exe)
output = 1000nmBC_.05cmSil_stripped.out
error = strip.unl.err
log = strip.unl.log
notification = never
transfer_executable=false
queue 1
#######################################################
EOF

condor_submit submit_file
rm submit_file
This is an example of a fairly simple job.  We will discuss more in depth later about running more complex applications.

Powered by Plone, the Open Source Content Management System