Commit cc52d827 authored by akhuziy's avatar akhuziy
Browse files

added pdf support to the launcher script

parent 17a74a0f
...@@ -3,18 +3,28 @@ ...@@ -3,18 +3,28 @@
#module load python/3.6.3 ## here you can load the module of environment for Python #module load python/3.6.3 ## here you can load the module of environment for Python
TEXT_REPORT_LOC="../text-report/runme.py" TEXT_REPORT_LOC="../text-report/runme.py"
PDF_REPORT_LOC="../pdf-report/pdfgen/pfit_pdfreport.py"
SUID_BIN_LOC="setuid-runner/setuid-runner" SUID_BIN_LOC="setuid-runner/setuid-runner"
SOURCE="${BASH_SOURCE[0]}" BTEXT="${TEXT_REPORT_LOC}"
SDIR="$( dirname "$SOURCE" )" BPDF="${PDF_REPORT_LOC}"
BDATA="${SUID_BIN_LOC}"
BTEXT="${SDIR}/${TEXT_REPORT_LOC}" USAGE="Usage: $0 [pdf] JOBID"
BDATA="${SDIR}/${SUID_BIN_LOC}"
USAGE="Usage: $0 JOBID"
if [ "$1" == "" ]; then if [ "$1" == "" ]; then
echo $USAGE echo $USAGE
elif [ "$1" == "pdf" ]; then
PFITTMP=$(mktemp -d)
if [ "$2" == "" ]; then
echo $USAGE
exit 0
fi
JOBID="$2"
JSON="$($BDATA -t pdf $JOBID -o $PFITTMP)"
python3 $BPDF ${PFITTMP}/${JOBID}.pdf.json $PFITTMP ./
else else
JOBID="$1" JOBID="$1"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment