Commit efe69735 authored by akhuziy's avatar akhuziy
Browse files

added an example script to generate the text report by users

parent cb78f297
#!/bin/bash
TEXT_REPORT_LOC="../text-report/runme.py"
SUID_BIN_LOC="setuid-runner/setuid-runner"
SOURCE="${BASH_SOURCE[0]}"
SDIR="$( dirname "$SOURCE" )"
BTEXT="${SDIR}/${TEXT_REPORT_LOC}"
BDATA="${SDIR}/${SUID_BIN_LOC}"
USAGE="Usage: $0 JOBID"
if [ "$1" == "" ]; then
echo $USAGE
else
JOBID="$1"
JSON="$($BDATA -t text $JOBID)"
if [ $? -eq 0 ]; then
echo "$JSON" | $BTEXT
else
exit
fi
fi
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