You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All workload start scripts use the following pattern to get benchmark command's return code:
syslog_netcat "Command output will be shown"
$command_line 2>&1 | while read line ; do
syslog_netcat "$line"
echo $line >> $GEN_OUTPUT_FILE
done
ERROR=$?
$? is the return code of the last command in the pipe, not that of the benchmark command.
Fix: a few solutions are list in the discussion on how to get the first command's return code. The simplest one is using ${PIPESTATUS[0]} (it's a bash specific variable)
The text was updated successfully, but these errors were encountered:
All workload start scripts use the following pattern to get benchmark command's return code:
$?
is the return code of the last command in the pipe, not that of the benchmark command.Fix: a few solutions are list in the discussion on how to get the first command's return code. The simplest one is using
${PIPESTATUS[0]}
(it's a bash specific variable)The text was updated successfully, but these errors were encountered: