Module: check_mk
Branch: master
Commit: f1af2a49a319c68873c5acbc42d3515b25e1ea62
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f1af2a49a319c6…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Feb 19 08:24:29 2018 +0100
Use traditional command substitution syntax, fixing a syntax error on the way.
Change-Id: I8f5c7a77fbb15d4fe7208df1a4b2d3a2d09696d3
---
agents/mk-job.solaris | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/agents/mk-job.solaris b/agents/mk-job.solaris
index e887253..b389477 100755
--- a/agents/mk-job.solaris
+++ b/agents/mk-job.solaris
@@ -42,7 +42,7 @@ if [ $# -lt 2 ]; then
exit 1
fi
-MYSELF=$(id | awk -F')' '{print $1}' | awk -F'(' '{print
$2}')
+MYSELF=`id | awk -F')' '{print $1}' | awk -F'(' '{print
$2}'`
OUTPUT_PATH=$MK_VARDIR/job/$MYSELF
IDENT=$1
shift
@@ -63,10 +63,10 @@ if ! type $1 >/dev/null 2>&1; then
fi
-echo "start_time $(perl -e 'print time')" >
"$OUTPUT_PATH/$IDENT.running"
+echo "start_time `perl -e 'print time'`" >
"$OUTPUT_PATH/$IDENT.running"
-info=$((/usr/bin/time -p sh -c "$@ 2>/dev/null 1>&2" 2>&1;
echo $?) | sed -e 's/,/\./g');
-RC=$(echo $info | awk '{print $7}')
+info=`(/usr/bin/time -p sh -c "$@ 2>/dev/null 1>&2" 2>&1; echo
$?) | sed -e 's/,/\./g'`
+RC=`echo $info | awk '{print $7}'`
(echo $info | awk '{print "exit_code "$7"\nreal_time
"$2"\nuser_time "$4"\nsystem_time "$6""}') >>
"$OUTPUT_PATH/$IDENT.running"
(echo -e "reads 0\nwrites 0\nmax_res_kbytes 0\navg_mem_kbytes
0\ninvol_context_switches 0\nvol_context_switches 0";) >>
"$OUTPUT_PATH/$IDENT.running"