# Prepare biogeme to be run with parallelstarter: # generate arglist from $BIOGEME_ARGS_FILE if [ -e "$ARGLIST_FILE" ]; then rm "$ARGLIST_FILE" fi if [ ! -e "$BIOGEME_ARGS_FILE" ]; then echo "Parallelstarter needs a configuration file for the biogeme runs you intend to execute." echo "File not found: $BIOGEME_ARGS_FILE" exit 1 fi while read biogeme_argline; do # ignore comment and empty lines if [ $(echo "$biogeme_argline" | egrep -c "^[ \t]*#.*$") -gt 0 ]; then continue fi # ignore empty lines or malformed lines if [ $(echo "$biogeme_argline" | sed 's/[^:]//g' | wc -m) -ne 3 ]; then continue fi RUN_NAME="`echo $(echo "$biogeme_argline" | awk -F ':' '{print $1}')`" echo "$RUN_NAME $RUN_NAME.dat" >> "$ARGLIST_FILE" done < "$BIOGEME_ARGS_FILE"