#!/bin/bash

# $1:priority, $2:event $3:start $4:end
for x in $(seq $3 $4 )
    do
       echo "universe   = vanilla"            > ./cmd/Ni_run$x.cmd
       echo "executable = ./run/Ni_run$x.sh"    >> ./cmd/Ni_run$x.cmd
       echo "error      = ./error/Ni_run$x.err" >> ./cmd/Ni_run$x.cmd
       echo "log        = ./log/Ni_run$x.log"   >> ./cmd/Ni_run$x.cmd
       echo "output     = ./out/Ni_run$x.out"   >> ./cmd/Ni_run$x.cmd
       echo "priority   = $1"                >> ./cmd/Ni_run$x.cmd
       echo "queue"                          >> ./cmd/Ni_run$x.cmd

       echo "#!/bin/bash" > ./run/Ni_run$x.sh
       echo "source /usr/local/geant4.9.1/src/geant4/.config/bin/Linux-g++/env.sh" >> ./run/Ni_run$x.sh
       echo "$PWD/bin/Linux-g++/target $2 Seed$x.dat $x" >> ./run/Ni_run$x.sh
       chmod 755 ./run/Ni_run$x.sh

       condor_submit ./cmd/Ni_run$x.cmd
    done

-- MinkyooChoi - 26 Mar 2009

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2009-03-26 - MinkyooChoi
 
KOREA-CMS
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding KoreaCmsWiki? Send feedback