123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #!/bin/sh
- echo Starte Simulation
- date
- NAME=minimal
- SIMDIR=$HOME/prog/objsim/$NAME/
- BINARY=sim$NAME
- PDATADIR=$HOME/data/sim/csim/$NAME/
- echo "clstartsim script"
- echo "running on "
- hostname
- JOBNUM=0
- if [ $# -gt 0 ]
- then
- JOBNUM=$1
- fi
- echo "SIMNAME=$NAME jobnum=$JOBNUM "
- shift
- echo "command line parameters: $*"
- DATADIR="/scratch/$NAME$JOBNUM/"
- mkdir $DATADIR
- pwd
- # ls -l
- cd $SIMDIR
- pwd
- echo $BINARY
- $SIMDIR/$BINARY --DataDirectory $DATADIR $* >$DATADIR/simoutput.txt 2>$DATADIR/simerror.txt
- date
- echo "Simulation fertig"
- echo "kopiere Daten"
- cp -r $DATADIR $PDATADIR
- date
- echo "Kopieren fertig. Ende"
|