source: tags/1.0/job @ 5

Last change on this file since 5 was 5, checked in by willem, 9 years ago

willem

File size: 611 bytes
Line 
1#PBS -lnodes=1 -lwalltime=2301
2cd $PBS_O_WORKDIR/jobdir || exit
3ncores=`cat /proc/cpuinfo|grep bogo|wc -l`
4for i in `seq $ncores` ; do
5(
6  while true ; do
7    eval "`../locker -n -p hoppa -m 3 -d lockdir`"
8    case "$LOCKER_RC" in
9    OK)
10            sleep $(( RANDOM%60 ))
11            echo "$LOCKER_VALUE" > file.`printf "%04d" "$LOCKER_VALUE"`.`hostname`.$i
12            echo "$LOCKER_KEY" | ../locker -p hoppa -r -d lockdir
13            #b=${a#*:}
14            #echo "$a" > file.`printf "%04d" "$b"`.`hostname`.$i
15            #echo "$a" | ../locker -p hoppa -r
16            ;;
17    *) echo "Klaar $LOCKER_RC"
18       break
19       ;;
20    esac
21  done
22)&
23done
24wait
Note: See TracBrowser for help on using the repository browser.