Editing
Adf08 large.sh
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
go back to [[Main Page]], [[Computational Resources]], [[Clusters]], [[External Resources]], [[Cesca]] It maybe a simpler script able to submit the calculations and get the results, but that works. It creates a submision script nameinput.cmd, and an executable nameinput.lsf, and submits the nameinput.smd to the queue large. To use it just type: adf08_large.sh nameinput the input file should be called nameinput.in --- <nowiki>#!/usr/local/bin/ksh</nowiki> <nowiki>echo '#!/bin/ksh' >$1.cmd</nowiki> <nowiki>echo '#BSUB -J '$1'.in' >>$1.cmd</nowiki> <nowiki>echo '#BSUB -q large' >>$1.cmd</nowiki> <nowiki>echo '#BSUB -o '$1'.log' >>$1.cmd</nowiki> <nowiki>echo '#BSUB -e '$1'.err' >>$1.cmd</nowiki> <nowiki>echo '#BSUB -B -N -u mbesora@iciq.es' >>$1.cmd</nowiki> <nowiki>echo '#BSUB -n 1' >>$1.cmd</nowiki> <nowiki>echo '#BSUB -R "select[adf0801] span[hosts=1]"' >>$1.cmd</nowiki> <nowiki>echo ' ' >>$1.cmd</nowiki> <nowiki>echo 'date' >>$1.cmd</nowiki> <nowiki>echo 'cd '$TMPDIR/mbesora' ' >>$1.cmd</nowiki> <nowiki>echo 'cp '$PWD'/'$1'.lsf .' >>$1.cmd</nowiki> <nowiki>echo ' ' >>$1.cmd</nowiki> <nowiki>echo '#! /bin/sh' >>$1.lsf</nowiki> <nowiki>echo 'if test -z "$SCM_TESTOUTPUT" ; then SCM_TESTOUTPUT='$1'.out; fi'>>$1.lsf</nowiki> <nowiki>echo ' ' >>$1.lsf</nowiki> <nowiki>echo '$ADFBIN/adf << eor >> $SCM_TESTOUTPUT' >>$1.lsf</nowiki> <nowiki>echo ' ' >>$1.lsf</nowiki> <nowiki>cat $1.in >>$1.lsf</nowiki> <nowiki>chmod 755 $1.lsf</nowiki> <nowiki>echo 'adf2008.01 ./'$1'.lsf>'$1'.out' >>$1.cmd</nowiki> <nowiki>echo ' ' >>$1.cmd</nowiki> <nowiki>echo 'cp '$1'.* '$PWD'/' >>$1.cmd</nowiki> <nowiki>echo 'rm -f TAPE21 *.t21' >>$1.cmd</nowiki> <nowiki>bsub < $1.cmd</nowiki>
Summary:
Please note that all contributions to Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information