Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ProfiT-HPC
aggregator
Commits
efe69735
Commit
efe69735
authored
Feb 13, 2020
by
Azat Khuziyakhmetov
Browse files
added an example script to generate the text report by users
parent
cb78f297
Changes
1
Hide whitespace changes
Inline
Side-by-side
profit.sh
0 → 100755
View file @
efe69735
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment