Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • piernik - monitoring aplikacji "piernik"

    Code Block
    collapsetrue
    #!/bin/sh
    echo 'qcg.monitor.scheme=piernik'
    tac bash
    
    WPREFIX=sedov_tst_000
    
    status=`tac ${WPREFIX}.log | grep -e "\s*@\s*0:\s*nstep\s*=" -m 1 || echo "-"
    cat sedov_tst_000.tsl`
    status=`echo "$status" | sed -e 's/^[ ]\+@[ ]\+//'`
    headers=`head -n 1 ${WPREFIX}.tsl`
    table_data=`grep -v '^#' ${WPREFIX}.tsl`
    
    lines=''
    while read line; do
        if [ ! -z "$lines" ]; then
            lines="$lines,\n"
        fi
    
        lines="$lines \"$line\""
    done <<< "$table_data"
    
    echo 'qcg.monitor.scheme=piernik'
    echo -e "{"
    echo -e "\t\"status\": \"$status\","
    echo -e "\t\"headers\": \"$headers\","
    echo -e "\t\"rows\": [\n$lines\n]"
    if [ ! -z "$images" ]; then
        echo -e ",\n\t\"images\": [\n$images\n]"
    fi
    echo -e "}"

Przykładowe zadanie

Przykładowe opis zadania dla aplikacji gaussian z monitoringiem postępu wykonania:

...