#!/bin/sh #number of jobs: njobs=100 #number of cores: nthread=8 for (( i = 1 ; i <= njobs; i=i+nthreads )) do #loop over cores: for (( j = i ; j <= i+nthreads-1; j++ )) do echo "running job $i on core $j" #run the job in the background ./runphotometry imagname${i}.input >& logfile${i}.log & done wait done echo "script ends" dsds
http://notepad.cc/nakaro99
change url
URL is unavailable.
add password
share this